/*1337895228,169776069*/

if (window.CavalryLogger) { CavalryLogger.start_js(["fbhRl"]); }




window.__DEV__=window.__DEV__||0;



if(!JSON.stringify.__fb)JSON.stringify=function(a){function b(){var c=a.apply(this,arguments);if(!c)return c;return c.replace(/[%\u2028\u2029]/g,function(d){var e=d.charCodeAt(0).toString(16);return '\\u0000'.substring(0,6-e.length)+e;});}b.__fb=true;return b;}(JSON.stringify);





function bagofholding(){}function bagof(a){return function(){return a;};}Array.prototype.reduce=null;Array.prototype.reduceRight=null;document.documentElement.className=document.documentElement.className.replace('no_js','');
(function(a){if(a.require)return;var b={},c={},d={},e=0,f=1,g=2,h=Object.prototype.hasOwnProperty;function i(t){var u=b[t],v,w,x;if(!b[t]){x='Requiring unknown module "'+t+'"';throw new Error(x);}if(u.waiting&&u.special&g)l();if(u.waiting){x='Requiring module "'+t+'" with unresolved dependencies';throw new Error(x);}if(!u.exports){var y=u.exports={},z=u.factory;if(Object.prototype.toString.call(z)==='[object Function]'){var aa=[],ba=u.dependencies,ca=ba.length;if(u.special&g)ca=Math.min(ca,z.length);for(w=0;w<ca;w++){v=ba[w];aa.push(v==='module'?u:(v==='exports'?y:i(v)));}var da=z.apply(u.context||a,aa);if(da)u.exports=da;}else u.exports=z;}if(u.refcount--===1)delete b[t];return u.exports;}function j(t,u,v,w,x,y){if(u===undefined){u=[];v=t;t=n();}else if(v===undefined){v=u;u=t;t=n();}var z=b[t];if(z){if(y)z.refcount+=y;return;}else if(!u&&!v&&y){d[t]=(d[t]||0)+y;return;}else{z={id:t};z.refcount=(d[t]||0)+(y||0);delete d[t];}z.factory=v;z.dependencies=u;z.context=x;z.special=w;b[t]=z;o(t);}function k(t,u,v){j(t,u,undefined,f,v,1);}function l(){var t={},u;for(u in c)if(h.call(c,u))if(b[u]&&!t[u]&&b[u].special&g)m({},u,t);}function m(t,u,v){v[u]=1;var w=c[u],x;if(!w)return;t[u]=1;for(x in w)if(h.call(w,x)){if(!b[x].special&g)continue;if(t[x]){delete w[x];b[x].waiting--;if(!b[x].waiting)p(x);}else m(t,x,v);}t[u]=0;}function n(){return '__mod__'+e++;}function o(t){var u=b[t],v=0;for(var w=0;w<u.dependencies.length;w++){var x=u.dependencies[w];if(!b[x]||b[x].waiting){c[x]||(c[x]={});if(!c[x][t])v++;c[x][t]=1;}}u.waiting=v;if(!v)p(t);}function p(t){var u=b[t];if(u.special&f)i(t);var v=c[t];if(v){delete c[t];for(var w in v)if(h.call(v,w))if(!--b[w].waiting)p(w);}}function q(t,u){b[t]={id:t};b[t].exports=u;}q('module',0);q('exports',0);q('define',j);q('global',a);q('require',i);q('requireDynamic',i);q('requireLazy',k);j.amd={};a.define=j;a.require=i;a.requireDynamic=i;a.requireLazy=k;i.__debug={modules:b,deps:c};var r=false,s=function(t,u,v,w){j(t,u,v,w||g);if(b[t].waiting&&!r)r=setTimeout(function(){l();r=false;},9);};a.__d=function(t,u,v,w){u=['global','require','requireDynamic','requireLazy','module','exports'].concat(u);s(t,u,v,w);};a.__e=a.__d;})(this);
__d("copyProperties",[],function(a,b,c,d,e,f){function g(h,i,j,k,l,m,n){h=h||{};var o=[i,j,k,l,m],p=0,q;while(o[p]){q=o[p++];for(var r in q)h[r]=q[r];if(q.hasOwnProperty&&q.hasOwnProperty('toString')&&(typeof q.toString!='undefined')&&(h.toString!==q.toString))h.toString=q.toString;}return h;}e.exports=g;});
__d("Env",["copyProperties"],function(a,b,c,d,e,f){var g=b('copyProperties'),h={start:Date.now()};if(a.Env){g(h,a.Env);a.Env=undefined;}e.exports=h;});
__d("ErrorUtils",["Env"],function(a,b,c,d,e,f){var g=b('Env'),h=[],i=[],j=10,k=window.chrome&&'type' in new Error();function l(q){if(!q){return {};}else if(q._originalError)return q;var r={line:q.lineNumber||q.line,message:q.message,name:q.name,script:q.fileName||q.sourceURL||q.script,stack:q.stackTrace||q.stack};r._originalError=q;if(k&&/(\w{3,5}:\/\/[^:]+):(\d+)/.test(q.stack)){r.script=RegExp.$1;r.line=parseInt(RegExp.$2,10);}for(var s in r)(r[s]==null&&delete r[s]);return r;}function m(q,r){q=l(q);!r;if(i.length<j)i.push(q);for(var s=0;s<h.length;s++)try{h[s](q);}catch(t){}}function n(q,r,s,t){if(g.nocatch||(/nocatch/).test(location.search))return q.apply(r,s||[]);try{return q.apply(r,s||[]);}catch(u){var v=l(u);if(t)t(v);v.callee=q.toString().substring(0,100);if(s)v.args=String(s).substring(0,100);m(v);}}function o(q,r,s){m({message:q,script:r,line:s},true);}window.onerror=o;function p(q,r){h.push(q);if(!r)i.forEach(q);}e.exports={history:i,onerror:o,reportError:m,normalizeError:l,applyWithGuard:n,addListener:p};});
__d("hasArrayNature",[],function(a,b,c,d,e,f){function g(h){return (!!h&&(typeof h=='object'||typeof h=='function')&&('length' in h)&&!('setInterval' in h)&&(Object.prototype.toString.call(h)==="[object Array]"||('callee' in h)||('item' in h)));}e.exports=g;});
__d("createArrayFrom",["hasArrayNature"],function(a,b,c,d,e,f){var g=b('hasArrayNature');function h(i){if(!g(i))return [i];if(i.item){var j=i.length,k=new Array(j);while(j--)k[j]=i[j];return k;}return Array.prototype.slice.call(i);}e.exports=h;});
__d("Arbiter",["ErrorUtils","copyProperties","createArrayFrom","hasArrayNature"],function(a,b,c,d,e,f){var g=b('ErrorUtils'),h=b('copyProperties'),i=b('createArrayFrom'),j=b('hasArrayNature');if(!window.async_callback)window.async_callback=function(m,n){return m;};function k(){h(this,{_listeners:[],_events:{},_callbacks:{},_last_id:1,_listen:{},_index:{}});h(this,k);}h(k,{SUBSCRIBE_NEW:'new',SUBSCRIBE_ALL:'all',BEHAVIOR_EVENT:'event',BEHAVIOR_PERSISTENT:'persistent',BEHAVIOR_STATE:'state',LIVEMESSAGE:'livemessage',BOOTLOAD:'bootload',FUNCTION_EXTENSION:'function_ext',subscribe:function(m,n,o){m=i(m);var p=m.some(function(x){return !x||typeof(x)!='string';});if(p)return null;o=o||k.SUBSCRIBE_ALL;var q=k._getInstance(this);q._listeners.push({callback:n,types:m});var r=q._listeners.length-1;for(var s=0;s<m.length;s++){var t=m[s];if(!q._index[t])q._index[t]=[];q._index[t].push(r);if(o==k.SUBSCRIBE_ALL)if(t in q._events)for(var u=0;u<q._events[t].length;u++){var v=q._events[t][u],w=g.applyWithGuard(n,null,[t,v]);if(w===false){q._events[t].splice(u,1);u--;}}}return new l(q,r);},unsubscribe:function(m){m.unsubscribe();},inform:function(m,n,o){var p=j(m);m=i(m);var q=k._getInstance(this),r={};o=o||k.BEHAVIOR_EVENT;for(var s=0;s<m.length;s++){var t=m[s],u=null;if(o==k.BEHAVIOR_PERSISTENT){u=q._events.length;if(!(t in q._events))q._events[t]=[];q._events[t].push(n);q._events[t]._stateful=false;}else if(o==k.BEHAVIOR_STATE){u=0;q._events[t]=[n];q._events[t]._stateful=true;}else if(t in q._events)q._events[t]._stateful=false;a.ArbiterMonitor&&a.ArbiterMonitor.record('event',t,n,q);var v;if(q._index[t]){var w=i(q._index[t]);for(var x=0;x<w.length;x++){var y=q._listeners[w[x]];if(y){v=g.applyWithGuard(y.callback,null,[t,n]);if(v===false){if(u!==null)q._events[t].splice(u,1);break;}}}}q._updateCallbacks(t,n);a.ArbiterMonitor&&a.ArbiterMonitor.record('done',t,n,q);r[t]=v;}return p?r:r[m[0]];},query:function(m){var n=k._getInstance(this);if(!(m in n._events))return null;if(n._events[m].length)return n._events[m][0];return null;},_instance:null,_getInstance:function(m){if(m instanceof k)return m;if(!k._instance)k._instance=new k();return k._instance;},registerCallback:function(m,n){var o,p=0,q=k._getInstance(this),r=false;if(typeof m=='function'){o=q._last_id;q._last_id++;r=true;}else{if(!q._callbacks[m])return null;o=m;}if(j(n)){var s={};for(var t=0;t<n.length;t++)s[n[t]]=1;n=s;}for(var u in n){try{if(q.query(u))continue;}catch(v){}p+=n[u];if(q._listen[u]===undefined)q._listen[u]={};q._listen[u][o]=(q._listen[u][o]||0)+n[u];}if(p===0&&r){g.applyWithGuard(m);return null;}if(!r){q._callbacks[o].depnum+=p;}else q._callbacks[o]={callback:window.async_callback(m,'arbiter'),depnum:p};return o;},_updateCallbacks:function(m,n){if(n===null||!this._listen[m])return;for(var o in this._listen[m]){this._listen[m][o]--;if(this._listen[m][o]<=0)delete this._listen[m][o];this._callbacks[o].depnum--;if(this._callbacks[o].depnum<=0){var p=this._callbacks[o].callback;delete this._callbacks[o];g.applyWithGuard(p);}}}});function l(m,n){this._instance=m;this._id=n;}h(l.prototype,{unsubscribe:function(){var m=this._instance._listeners,n=m[this._id];if(!n)return;for(var o=0;o<n.types.length;o++){var p=n.types[o],q=this._instance._index[p];if(q)for(var r=0;r<q.length;r++)if(q[r]==this._id){q.splice(r,1);if(q.length===0)delete q[p];break;}}delete m[this._id];}});e.exports=k;});
__d("legacy:arbiter",["Arbiter"],function(a,b,c,d){a.Arbiter=b('Arbiter');},3);
__d("event-form-bubbling",[],function(a,b,c,d,e,f){a.Event=a.Event||function(){};Event.__inlineSubmit=function(g,event){var h=Event.__getHandler&&Event.__getHandler(g,'submit');return h?null:Event.__bubbleSubmit(g,event);};Event.__bubbleSubmit=function(g,event){if(document.documentElement.attachEvent){var h;while(h!==false&&(g=g.parentNode))h=g.onsubmit?g.onsubmit(event):Event.__fire&&Event.__fire(g,'submit',event);return h;}};},3);
__d("DataStore",[],function(a,b,c,d,e,f){var g={},h=1;function i(l){if(typeof l=='string'){return 'str_'+l;}else return 'elem_'+(l.__FB_TOKEN||(l.__FB_TOKEN=[h++]))[0];}function j(l){var m=i(l);return g[m]||(g[m]={});}var k={set:function(l,m,n){var o=j(l);o[m]=n;return l;},get:function(l,m,n){var o=j(l),p=o[m];if(typeof p==='undefined'&&l.getAttribute){var q=l.getAttribute('data-'+m);p=(null===q)?undefined:q;}if((n!==undefined)&&(p===undefined))p=o[m]=n;return p;},remove:function(l,m){var n=j(l),o=n[m];delete n[m];return o;},purge:function(l){delete g[i(l)];}};e.exports=k;});
__d("ge",[],function(a,b,c,d,e,f){function g(h){return typeof h=='string'?document.getElementById(h):h;}e.exports=g;});
__d("$",["ge"],function(a,b,c,d,e,f){var g=b('ge');function h(i){var j=g(i);return j;}e.exports=h;});
__d("CSS",["$"],function(a,b,c,d,e,f){var g=b('$'),h='hidden_elem',i={setClass:function(j,k){g(j).className=k||'';return j;},hasClass:function(j,k){j=g(j);return (' '+j.className+' ').indexOf(' '+k+' ')>-1;},addClass:function(j,k){j=g(j);if(k&&!i.hasClass(j,k))j.className=j.className+' '+k;return j;},removeClass:function(j,k){j=g(j);if(i.hasClass(j,k))j.className=j.className.replace(new RegExp('(^|\\s)'+k+'(?:\\s|$)','g'),'$1').replace(/\s+/g,' ').replace(/^\s*|\s*$/g,'');return j;},conditionClass:function(j,k,l){return (l?i.addClass:i.removeClass)(j,k);},toggleClass:function(j,k){return i.conditionClass(j,k,!i.hasClass(j,k));},shown:function(j){return !i.hasClass(j,h);},hide:function(j){return i.addClass(j,h);},show:function(j){return i.removeClass(j,h);},toggle:function(j){return i.toggleClass(j,h);},conditionShow:function(j,k){return i.conditionClass(j,h,!k);}};e.exports=i;});
__d("UserAgent",[],function(a,b,c,d,e,f){var g=false,h,i,j,k,l,m,n,o,p,q,r,s,t,u;function v(){if(g)return;g=true;var x=navigator.userAgent,y=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(x),z=/(Mac OS X)|(Windows)|(Linux)/.exec(x);r=/\b(iPhone|iP[ao]d)/.exec(x);s=/\b(iP[ao]d)/.exec(x);p=/Android/i.exec(x);t=/FBAN\/\w+;/i.exec(x);u=/Mobile/i.exec(x);q=!!(/Win64/.exec(x));if(y){h=y[1]?parseFloat(y[1]):NaN;if(h&&document.documentMode)h=document.documentMode;i=y[2]?parseFloat(y[2]):NaN;j=y[3]?parseFloat(y[3]):NaN;k=y[4]?parseFloat(y[4]):NaN;if(k){y=/(?:Chrome\/(\d+\.\d+))/.exec(x);l=y&&y[1]?parseFloat(y[1]):NaN;}else l=NaN;}else h=i=j=l=k=NaN;if(z){if(z[1]){var aa=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(x);m=aa?parseFloat(aa[1].replace('_','.')):true;}else m=false;n=!!z[2];o=!!z[3];}else m=n=o=false;}var w={ie:function(){return v()||h;},ie64:function(){return w.ie()&&q;},firefox:function(){return v()||i;},opera:function(){return v()||j;},safari:function(){return v()||k;},chrome:function(){return v()||l;},windows:function(){return v()||n;},osx:function(){return v()||m;},linux:function(){return v()||o;},iphone:function(){return v()||r;},mobile:function(){return v()||(r||s||p||u);},nativeApp:function(){return v()||t;},android:function(){return v()||p;},ipad:function(){return v()||s;}};e.exports=w;});
__d("createObjectFrom",["hasArrayNature"],function(a,b,c,d,e,f){var g=b('hasArrayNature');function h(i,j){var k={},l=g(j);if(typeof j=='undefined')j=true;for(var m=i.length;m--;)k[i[m]]=l?j[m]:j;return k;}e.exports=h;});
__d("DOMQuery",["CSS","UserAgent","createArrayFrom","createObjectFrom","ge"],function(a,b,c,d,e,f){var g=b('CSS'),h=b('UserAgent'),i=b('createArrayFrom'),j=b('createObjectFrom'),k=b('ge'),l={find:function(m,n){var o=l.scry(m,n);return o[0];},scry:function(m,n){if(!m||!m.getElementsByTagName)return [];var o=n.split(' '),p=[m];for(var q=0;q<o.length;q++){if(p.length===0)break;if(o[q]==='')continue;var r=o[q],s=o[q],t=[],u=false;if(r.charAt(0)=='^')if(q===0){u=true;r=r.slice(1);}else return [];r=r.replace(/\./g,' .');r=r.replace(/\#/g,' #');r=r.replace(/\[/g,' [');var v=r.split(' '),w=v[0]||'*',x=w=='*',y=v[1]&&v[1].charAt(0)=='#';if(y){var z=k(v[1].slice(1),true);if(z&&(x||z.tagName.toLowerCase()==w))for(var aa=0;aa<p.length;aa++)if(u&&l.contains(z,p[aa])){t=[z];break;}else if(document==p[aa]||l.contains(p[aa],z)){t=[z];break;}}else{var ba=[],ca=p.length,da,ea=!u&&s.indexOf('[')<0&&document.querySelectorAll;for(var fa=0;fa<ca;fa++){if(u){da=[];var ga=p[fa].parentNode;while(l.isElementNode(ga)){if(x||ga.tagName.toLowerCase()==w)da.push(ga);ga=ga.parentNode;}}else if(ea){da=p[fa].querySelectorAll(s);}else da=p[fa].getElementsByTagName(w);var ha=da.length;for(var ia=0;ia<ha;ia++)ba.push(da[ia]);}if(!ea)for(var ja=1;ja<v.length;ja++){var ka=v[ja],la=ka.charAt(0)=='.',ma=ka.substring(1);for(fa=0;fa<ba.length;fa++){var na=ba[fa];if(!na)continue;if(la){if(!g.hasClass(na,ma))delete ba[fa];continue;}else{var oa=ka.slice(1,ka.length-1);if(oa.indexOf('=')==-1){if(na.getAttribute(oa)===null){delete ba[fa];continue;}}else{var pa=oa.split('='),qa=pa[0],ra=pa[1];ra=ra.slice(1,ra.length-1);if(na.getAttribute(qa)!=ra){delete ba[fa];continue;}}}}}for(fa=0;fa<ba.length;fa++)if(ba[fa]){t.push(ba[fa]);if(u)break;}}p=t;}return p;},getText:(function(){var m=document.createElement('div'),n=m.textContent!=null?'textContent':'innerText';return function(o){if(l.isTextNode(o)){return o.data;}else if(l.isElementNode(o)){return o[n];}else return '';};})(),getSelection:function(){var m=window.getSelection,n=document.selection;if(m){return m()+'';}else if(n)return n.createRange().text;return null;},contains:function(m,n){m=k(m);n=k(n);if(!m||!n){return false;}else if(m===n){return true;}else if(l.isTextNode(m)){return false;}else if(l.isTextNode(n)){return l.contains(m,n.parentNode);}else if(m.contains){return m.contains(n);}else if(m.compareDocumentPosition){return !!(m.compareDocumentPosition(n)&16);}else return false;},getRootElement:function(){var m=null;if(window.Quickling&&Quickling.isActive())m=k('content');return m||document.body;},isNode:function(m){return !!(m&&(typeof Node=='object'?m instanceof Node:typeof m=="object"&&typeof m.nodeType=='number'&&typeof m.nodeName=='string'));},isNodeOfType:function(m,n){var o=i(n).join('|').toUpperCase().split('|'),p=j(o);return l.isNode(m)&&m.nodeName in p;},isElementNode:function(m){return l.isNode(m)&&m.nodeType==1;},isTextNode:function(m){return l.isNode(m)&&m.nodeType==3;},getDocumentScrollElement:function(m){m=m||document;if(g.hasClass(m.documentElement,'wrapped')){var n=m.getElementById('body');if(n)return n;}var o=h.chrome()||h.safari();return !o&&m.compatMode==='CSS1Compat'?m.documentElement:m.body;},getDocumentBodyElement:function(m){m=m||document;if(g.hasClass(m.documentElement,'wrapped')){var n=m.getElementById('body');if(n)return n;}return m.body;}};e.exports=l;});
__d("Parent",["CSS"],function(a,b,c,d,e,f){var g=b('CSS'),h={byTag:function(i,j){j=j.toUpperCase();while(i&&i.nodeName!=j)i=i.parentNode;return i;},byClass:function(i,j){while(i&&!g.hasClass(i,j))i=i.parentNode;return i;},byAttribute:function(i,j){while(i&&(!i.getAttribute||!i.getAttribute(j)))i=i.parentNode;return i;}};e.exports=h;});
__d("getObjectValues",["hasArrayNature"],function(a,b,c,d,e,f){var g=b('hasArrayNature');function h(i){var j=[];for(var k in i)j.push(i[k]);return j;}e.exports=h;});
__d("function-extensions",["createArrayFrom"],function(a,b,c,d,e,f){var g=b('createArrayFrom');Function.prototype.curry=function(){var h=g(arguments);return this.bind.apply(this,[null].concat(h));};Function.prototype.shield=function(h){if(typeof this!='function')throw new TypeError();var i=this.bind.apply(this,g(arguments));return function(){return i();};};Function.prototype.defer=function(h,i){if(typeof this!='function')throw new TypeError();h=h||0;return setTimeout(this,h,i);};},3);
__d("isEmpty",[],function(a,b,c,d,e,f){function g(h){if(h instanceof Array){return h.length===0;}else if(h instanceof Object){for(var i in h)return false;return true;}else return !h;}e.exports=g;});
__d("CSSLoader",["isEmpty"],function(a,b,c,d,e,f){var g=b('isEmpty'),h=20,i=5000,j,k,l={},m=[],n,o={};function p(u){var v=Array.prototype.slice(arguments,1);for(var w=0;w<u.length;w++)u[w].apply(null,v);}function q(u){if(k)return;k=true;var v=document.createElement('link');v.onload=function(){j=true;v.parentNode.removeChild(v);};v.rel='stylesheet';v.href='data:text/css;base64,';u.appendChild(v);}function r(){var u,v=[],w=[];if(Date.now()>=n){for(u in o){w.push(o[u].signal);v.push(o[u].error);}o={};}else for(u in o){var x=o[u].signal,y=window.getComputedStyle?getComputedStyle(x,null):x.currentStyle;if(y&&parseInt(y.height,10)>1){v.push(o[u].load);w.push(x);delete o[u];}}for(var z=0;z<w.length;z++)w[z].parentNode.removeChild(w[z]);if(!g(v)){p(v);n=Date.now()+i;}return g(o);}function s(u,v,w,x){var y=document.createElement('meta');y.id='bootloader_'+u.replace(/[^a-z0-9]/ig,'_');v.appendChild(y);var z=!g(o);n=Date.now()+i;o[u]={signal:y,load:w,error:x};if(!z)var aa=setInterval(function ba(){if(r())clearInterval(aa);},h,false);}var t={loadStyleSheet:function(u,v,w,x,y){if(l[u])throw new Error('CSS component '+u+' has already been requested.');if(document.createStyleSheet){var z;for(var aa=0;aa<m.length;aa++)if(m[aa].imports.length<31){z=aa;break;}if(z===undefined){m.push(document.createStyleSheet());z=m.length-1;}m[z].addImport(v);l[u]={styleSheet:m[z],uri:v};s(u,w,x,y);return;}var ba=document.createElement('link');ba.rel='stylesheet';ba.type='text/css';ba.href=v;l[u]={link:ba};if(j){ba.onload=function(){ba.onload=ba.onerror=null;x();};ba.onerror=function(){ba.onload=ba.onerror=null;y();};}else{s(u,w,x,y);if(j===undefined)q(w);}w.appendChild(ba);},registerLoadedStyleSheet:function(u,v){if(l[u])throw new Error('CSS component '+u+' has already been requested.');l[u]={link:v};},unloadStyleSheet:function(u){if(!u in l)return;var v=l[u],w=v.link;if(w){w.onload=w.onerror=null;w.parentNode.removeChild(w);}else{var x=v.styleSheet;for(var y=0;y<x.imports.length;y++)if(x.imports[y].href==v.uri){x.removeImport(y);break;}}delete o[u];delete l[u];}};e.exports=t;});
__d("Bootloader",["function-extensions","Arbiter","CSSLoader","Env","createArrayFrom","isEmpty"],function(a,b,c,d,e,f){b('function-extensions');var g=b('Arbiter'),h=b('CSSLoader'),i=b('Env'),j=b('createArrayFrom'),k=b('isEmpty'),l={},m={},n={},o=null,p={},q={},r=false,s=[];function t(x,y,z,aa){var ba=w.done.curry([z],x=='css');if(x=='js'){var ca=document.createElement('script');ca.src=y;ca.async=true;var da=p[z];if(da&&da.crossOrigin&&i.crossorigin_attribute)ca.crossOrigin='anonymous';ca.onload=ca.onerror=ba;ca.onreadystatechange=function(){if(this.readyState in {loaded:1,complete:1})ba();};aa.appendChild(ca);}else if(x=='css')h.loadStyleSheet(z,y,aa,ba,function(){ba();});}function u(x){if(!p[x])return;if(p[x].type=='css'){h.unloadStyleSheet(x);delete l[x];g.inform(g.BOOTLOAD+'/'+x,null,g.BEHAVIOR_STATE);}}function v(x,y){if(!r){s.push([x,y]);return;}x=j(x);var z=[];for(var aa=0;aa<x.length;++aa){if(!x[aa])continue;var ba=n[x[aa]];if(ba){var ca=ba.resources;for(var da=0;da<ca.length;++da)z.push(ca[da]);}}w.loadResources(z,y);}var w={configurePage:function(x){var y={},z=w.resolveResources(x),aa;for(aa=0;aa<z.length;aa++){y[z[aa].src]=z[aa];w.requested(z[aa].name);}var ba=document.getElementsByTagName('link');for(aa=0;aa<ba.length;++aa){if(ba[aa].rel!='stylesheet')continue;for(var ca in y)if(ba[aa].href.indexOf(ca)!==-1){var da=y[ca].name;if(y[ca].permanent)m[da]=true;delete y[ca];h.registerLoadedStyleSheet(da,ba[aa]);w.done([da],true);break;}}},loadComponents:function(x,y){x=j(x);var z=[],aa=[];for(var ba=0;ba<x.length;ba++){var ca=n[x[ba]];if(ca&&!ca.module)continue;var da='legacy:'+x[ba];if(n[da]){x[ba]=da;z.push(da);}else if(ca&&ca.module){z.push(x[ba]);if(!ca.runWhenReady)aa.push(x[ba]);}}v(x,z.length?d.curry(z,y):y);},loadModules:function(x,y){var z=[],aa=[];for(var ba=0;ba<x.length;ba++){var ca=n[x[ba]];if(!ca||ca.module)z.push(x[ba]);}v(x,d.curry(z,y));},loadResources:function(x,y,z,aa){var ba;x=w.resolveResources(j(x));if(z){var ca={};for(ba=0;ba<x.length;++ba)ca[x[ba].name]=true;for(var da in l)if(!(da in m)&&!(da in ca)&&!(da in q))u(da);q={};}var ea=[],fa=[];for(ba=0;ba<x.length;++ba){var ga=x[ba];if(ga.permanent)m[ga.name]=true;var ha=g.BOOTLOAD+'/'+ga.name;if(g.query(ha)!==null)continue;if(!ga.nonblocking)fa.push(ha);if(!l[ga.name]){w.requested(ga.name);ea.push(ga);window.CavalryLogger&&window.CavalryLogger.getInstance().measureResources(ga,aa);}}if(y)y=g.registerCallback(y,fa);var ia=document.documentMode||+(/MSIE.(\d+)/.exec(navigator.userAgent)||[])[1],ja=w.getHardpoint(),ka=ia?ja:document.createDocumentFragment();for(ba=0;ba<ea.length;++ba)t(ea[ba].type,ea[ba].src,ea[ba].name,ka);if(ja!==ka)ja.appendChild(ka);return y;},requestResource:function(x,y,z){var aa=w.getHardpoint();t(x,y,z,aa);},done:function(x,y){w.requested(x);if(!y){var z={sender:this};g.inform(g.BOOTLOAD,z,g.BEHAVIOR_EVENT);}for(var aa=0;aa<x.length;++aa){var ba=x[aa];g.inform(g.BOOTLOAD+'/'+ba,true,g.BEHAVIOR_STATE);}},requested:function(x){x=j(x);for(var y=0;y<x.length;++y)l[x[y]]=true;},enableBootload:function(x){for(var y in x)if(!n[y])n[y]=x[y];if(!r){r=true;for(var z=0;z<s.length;z++)v.apply(null,s[z]);s=[];}},getHardpoint:function(){if(!o){var x=document.getElementsByTagName('head');o=x.length&&x[0]||document.body;}return o;},setResourceMap:function(x){if(!x)return;for(var y in x){if(!x[y].name)x[y].name=y;p[y]=x[y];}},resolveResources:function(x){if(!x)return [];var y=[];for(var z=0;z<x.length;++z)if(typeof x[z]=='string'){if(x[z] in p)y.push(p[x[z]]);}else y.push(x[z]);return y;},loadEarlyResources:function(x){var y;w.setResourceMap(x);var z=[];for(y in x)z.push(p[y]);w.loadResources(z);for(y in x){var aa=p[y];if(!aa.permanent)q[aa.name]=aa;}},isDisplayJS:function(x){if(typeof x=='string')x=p[x];return x.displayjs;}};e.exports=w;});
__d("OnloadEvent",[],function(a,b,c,d,e,f){var g={ONLOAD:'onload/onload',ONLOAD_CALLBACK:'onload/onload_callback',ONLOAD_DOMCONTENT:'onload/dom_content_ready',ONLOAD_DOMCONTENT_CALLBACK:'onload/domcontent_callback',ONBEFOREUNLOAD:'onload/beforeunload',ONUNLOAD:'onload/unload'};e.exports=g;});
__d("EagleEye",["Arbiter","Bootloader","Env","OnloadEvent"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('Bootloader'),i=b('Env'),j=b('OnloadEvent'),k=i.eagleEyeConfig||{},l='_e_',m=(window.name||'').toString();if(m.length==7&&m.substr(0,3)==l){m=m.substr(3);}else{m=k.seed;if(window==window.top)window.name=l+m;}var n=(window.location.protocol=='https:'&&document.cookie.match(/\bcsm=1/))?'; secure':'',o=l+m+'_',p=new Date(Date.now()+604800000).toGMTString(),q=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1'),r='; expires='+p+';path=/; domain='+q+n,s=0,t,u=k.sessionStorage&&a.sessionStorage,v=document.cookie.length,w=false,x=Date.now();function y(da){var ea=2166136261;for(var fa=0,ga=da.length;fa<ga;++fa)ea=(ea^da.charCodeAt(fa))*16777619;ea+=ea<<13;ea^=ea>>7;ea+=ea<<3;ea^=ea>>17;ea+=ea<<5;return (ea|0)+2147483648;}function z(da){return o+(s++)+'='+encodeURIComponent(da)+r;}function aa(){var da=[],ea=false,fa=0,ga=0;this.isEmpty=function(){return !da.length;};this.enqueue=function(ha,ia){if(ia){da.unshift(ha);}else da.push(ha);};this.dequeue=function(){da.shift();};this.peek=function(){return da[0];};this.clear=function(ha){v=Math.min(v,document.cookie.length);if(!w&&(new Date()-x>60000))w=true;var ia=!ha&&(document.cookie.search(l)>=0),ja=!!i.cookie_header_limit,ka=i.cookie_count_limit||19,la=i.cookie_header_limit||3950,ma=ka-5,na=la-1000;while(!this.isEmpty()){var oa=z(this.peek());if(ja&&(oa.length>la||(w&&oa.length+v>la))){this.dequeue();continue;}if((ia||ja)&&((document.cookie.length+oa.length>la)||(document.cookie.split(';').length>ka)))break;document.cookie=oa;ia=true;this.dequeue();}var pa=Date.now();if(ha||!ea&&ia&&((ga>0)&&(Math.min(10*Math.pow(2,ga-1),60000)+fa<pa))&&g.query(j.ONLOAD)&&(!this.isEmpty()||(document.cookie.length>na)||(document.cookie.split(';').length>ma))){var qa=new Image(),ra=this,sa=i.tracking_domain||'';ea=true;qa.onload=function va(){ea=false;ga=0;ra.clear();};qa.onerror=qa.onabort=function va(){ea=false;fa=Date.now();ga++;};var ta=i.fb_isb?'&fb_isb='+i.fb_isb:'',ua='&__user='+i.user;qa.src=sa+'/ajax/nectar.php?asyncSignal='+(Math.floor(Math.random()*10000)+1)+ta+ua+'&'+(!ha?'':'s=')+pa;}};}t=new aa();if(u){var ba=function(){var da=0,ea=da;function fa(){var ia=sessionStorage.getItem('_e_ids');if(ia){var ja=(ia+'').split(';');if(ja.length==2){da=parseInt(ja[0],10);ea=parseInt(ja[1],10);}}}function ga(){var ia=da+';'+ea;sessionStorage.setItem('_e_ids',ia);}function ha(ia){return '_e_'+((ia!==undefined)?ia:da++);}this.isEmpty=function(){return ea===da;};this.enqueue=function(ia,ja){var ka=ja?ha(--ea):ha();sessionStorage.setItem(ka,ia);ga();};this.dequeue=function(){this.isEmpty();sessionStorage.removeItem(ha(ea));ea++;ga();};this.peek=function(){var ia=sessionStorage.getItem(ha(ea));return ia?(ia+''):ia;};this.clear=t.clear;fa();};t=new ba();}var ca={log:function(da,ea,fa){if(i.no_cookies)return;var ga=[m,Date.now(),da].concat(ea);ga.push(ga.length);function ha(){var ia=JSON.stringify(ga);try{t.enqueue(ia,!!fa);t.clear(!!fa);}catch(ja){if(u&&(ja.code===1000)){t=new aa();u=false;ha();}}}ha();},createLogger:function(da,ea){ea=(ea===undefined)?1:ea;var fa=function(ga,ha){if(fa.enabled)ca.log(da,ga,ha);};fa.enabled=false;fa._key=(i.user||Math.random())+da;fa.enabled=(y(fa._key)%65535/65535)<=ea;return fa;},getSessionID:function(){return m;},hash:function(da){return y(da);}};a.EagleEye=e.exports=ca;},3);
__d("debounce",[],function(a,b,c,d,e,f){function g(h,i,j,k,l){i=(i!=null)?i:100;var m,n;function o(){var p=arguments;!l&&o.reset();if(!l||!m||(n+i<Date.now())){m=setTimeout(function(){m=null;h.apply(this,p);}.bind(j||this),i,!k);n=Date.now();}}o.reset=function(){m&&clearTimeout(m);m=null;};return o;}e.exports=g;});
__d("userAction",["Arbiter","EagleEye","copyProperties","debounce"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('EagleEye'),i=b('copyProperties'),j=b('debounce');function k(t,u,v){var w=t+'/'+u;i(this,{ue:w,_ua_id:null,_ts:t,_ns:null,_start_ts:t,_prev_event:'s',_ue_ts:t,_ue_count:u,_context:v,_data_version:1,_event_version:2,_info_version:1});this._log('uan',[1,w]);this._report=j(function x(){var y=[this._info_version,this.ue,this._ns,this._ua_id];this._log('uai',y);},100,this);}var l=[],m={},n={};i(k.prototype,{_log:function(t,u){var v=m[t]!==undefined?m[t]:true,w=n[t],x=w?w[this._ns]:{},y=x?x[this._ua_id]:undefined;if(y!==undefined?y:v)h.log(t,u);},set_ua_id:function(t){this._ua_id=t;this._report();return this;},set_namespace:function(t){this._ns=t;this._report();return this;},add_event:function(t,u){u=u||0;var v=(Date.now()-u),w=v-this._ts,x=v-this._ue_ts,y=[this._event_version,this.ue,this._ns,this._ua_id,this._prev_event,t,w,x];this._log('uae',y);this._ts=v;this._prev_event=t;return this;},add_data:function(t){var u=[this._data_version,this.ue,t];this._log('uad',u);return this;}});var o=0,p=0,q=null,r=null;function s(t,u,event,v,w){var x=Date.now(),y=x+'/'+o;w=w||{};if(!u&&event)u=event.getTarget();var z=50;if(u&&q)if(x-p<z&&u==q&&v!="FORCE")return l[l.length-1];if(!window.addEventListener&&document.createEventObject)event=document.createEventObject(event);q=u;r=event;var aa=new k(x,o,t);l.push(aa);while(l.length>10)l.shift();g.inform("UserAction/new",{ua:aa,node:u,mode:v,event:event,extra_data:w});p=x;o++;return aa;}s.setUATypeConfig=function(t){i(m,t);};s.setCustomSampleConfig=function(t){i(n,t);};e.exports=s;});
__d("event-extensions",["event-form-bubbling","DataStore","DOMQuery","ErrorUtils","Parent","UserAgent","$","copyProperties","getObjectValues","userAction"],function(a,b,c,d,e,f){b('event-form-bubbling');var g=b('DataStore'),h=b('DOMQuery'),i=b('ErrorUtils'),j=b('Parent'),k=b('UserAgent'),l=b('$'),m=b('copyProperties'),n=b('getObjectValues'),o=b('userAction');Event.DATASTORE_KEY='Event.listeners';if(!Event.prototype)Event.prototype={};function p(y,z,aa){this.target=y;this.type=z;this.data=aa;}m(p.prototype,{getData:function(){this.data=this.data||{};return this.data;},stop:function(){this.cancelBubble=true;this.stopPropagation&&this.stopPropagation();return this;},prevent:function(){this.returnValue=false;this.preventDefault&&this.preventDefault();return this;},kill:function(){this.stop().prevent();return false;},getTarget:function(){var y=this.target||this.srcElement;return y?l(y):null;}});function q(y){if(y instanceof p)return y;y=y||window.event||{};if(!y._inherits_from_prototype)for(var z in Event.prototype)try{y[z]=Event.prototype[z];}catch(aa){}return y;}m(Event.prototype,{_inherits_from_prototype:true,getRelatedTarget:function(){var y=this.relatedTarget||(this.fromElement===this.srcElement?this.toElement:this.fromElement);return y?l(y):null;},getModifiers:function(){var y={control:!!this.ctrlKey,shift:!!this.shiftKey,alt:!!this.altKey,meta:!!this.metaKey};y.access=k.osx()?y.control:y.alt;y.any=y.control||y.shift||y.alt||y.meta;return y;},isMiddleClick:function(){if(this.which)return this.which===2;return this.button&&this.button===4;}});m(Event.prototype,p.prototype);m(Event,{listen:function(y,z,aa,ba){if(typeof y=='string')y=l(y);if(typeof ba=='undefined')ba=Event.Priority.NORMAL;if(typeof z=='object'){var ca={};for(var da in z)ca[da]=Event.listen(y,da,z[da],ba);return ca;}if(z.match(/^on/i))throw new TypeError("Bad event name `"+event+"': use `click', not `onclick'.");if(y.nodeName=='LABEL'&&z=='click'){var ea=y.getElementsByTagName('input');y=ea.length==1?ea[0]:y;}else if(y===window&&z==='scroll'){var fa=h.getDocumentScrollElement();if(fa!==document.documentElement&&fa!==document.body)y=fa;}var ga=g.get(y,s,{});if(u[z]){var ha=u[z];z=ha.base;aa=ha.wrap(aa);}v(y,z);var ia=ga[z];if(!(ba in ia))ia[ba]=[];var ja=ia[ba].length,ka=new x(aa,ia[ba],ja);ia[ba].push(ka);return ka;},stop:function(y){return q(y).stop();},prevent:function(y){return q(y).prevent();},kill:function(y){return q(y).kill();},getKeyCode:function(event){event=q(event);if(!event)return false;switch(event.keyCode){case 63232:return 38;case 63233:return 40;case 63234:return 37;case 63235:return 39;case 63272:case 63273:case 63275:return null;case 63276:return 33;case 63277:return 34;}if(event.shiftKey)switch(event.keyCode){case 33:case 34:case 37:case 38:case 39:case 40:return null;}return event.keyCode;},getPriorities:function(){if(!r){var y=n(Event.Priority);y.sort(function(z,aa){return z-aa;});r=y;}return r;},fire:function(y,z,aa){var ba=new p(y,z,aa),ca;do{var da=Event.__getHandler(y,z);if(da)ca=da(ba);y=y.parentNode;}while(y&&ca!==false&&!ba.cancelBubble);return ca!==false;},__fire:function(y,z,event){var aa=Event.__getHandler(y,z);if(aa)return aa(q(event));},__getHandler:function(y,z){return g.get(y,Event.DATASTORE_KEY+z);},getPosition:function(y){y=q(y);var z=h.getDocumentScrollElement(),aa=y.clientX+z.scrollLeft,ba=y.clientY+z.scrollTop;return {x:aa,y:ba};}});var r=null,s=Event.DATASTORE_KEY,t=function(y){return function(z){if(!h.contains(this,z.getRelatedTarget()))return y.call(this,z);};},u={mouseenter:{base:'mouseover',wrap:t},mouseleave:{base:'mouseout',wrap:t}},v=function(y,z){var aa='on'+z,ba=w.bind(y),ca=g.get(y,s);if(z in ca)return;ca[z]={};if(y.addEventListener){y.addEventListener(z,ba,false);}else if(y.attachEvent)y.attachEvent(aa,ba);g.set(y,s+z,ba);if(y[aa]){var da=y===document.documentElement?Event.Priority._BUBBLE:Event.Priority.TRADITIONAL,ea=y[aa];y[aa]=null;Event.listen(y,z,ea,da);}if(y.nodeName==='FORM'&&z==='submit')Event.listen(y,z,Event.__bubbleSubmit.curry(y),Event.Priority._BUBBLE);},w=function(event){event=q(event);var y=event.type;if(!g.get(this,s))throw new Error("Bad listenHandler context.");var z=g.get(this,s)[y];if(!z)throw new Error("No registered handlers for `"+y+"'.");if(y=='click'){var aa=j.byTag(event.getTarget(),'a'),ba=o('click',aa,event).set_namespace('evt_ext');if(window.ArbiterMonitor)window.ArbiterMonitor.initUA(ba,[aa]);}var ca=Event.getPriorities();for(var da=0;da<ca.length;da++){var ea=ca[da];if(ea in z){var fa=z[ea];for(var ga=0;ga<fa.length;ga++){if(!fa[ga])continue;var ha=fa[ga].fire(this,event);if(ha===false){return event.kill();}else if(event.cancelBubble)event.stop();}}}return event.returnValue;};Event.Priority={URGENT:-20,TRADITIONAL:-10,NORMAL:0,_BUBBLE:1000};function x(y,z,aa){this._handler=y;this._container=z;this._index=aa;}m(x.prototype,{remove:function(){delete this._handler;delete this._container[this._index];},fire:function(y,event){return i.applyWithGuard(this._handler,y,[event],function(z){z.event_type=event.type;z.dom_element=y.name||y.id;z.category='eventhandler';});}});a.$E=f.$E=q;});
__d("evalGlobal",[],function(a,b,c,d,e,f){function g(h){if(typeof h!='string')throw new TypeError('JS sent to evalGlobal is not a string. Only strings are permitted.');if(!h)return;var i=document.createElement('script');try{i.appendChild(document.createTextNode(h));}catch(j){i.text=h;}var k=document.getElementsByTagName('head')[0]||document.documentElement;k.appendChild(i);k.removeChild(i);}e.exports=g;});
__d("HTML",["function-extensions","Bootloader","UserAgent","copyProperties","createArrayFrom","evalGlobal"],function(a,b,c,d,e,f){b('function-extensions');var g=b('Bootloader'),h=b('UserAgent'),i=b('copyProperties'),j=b('createArrayFrom'),k=b('evalGlobal');function l(m){if(m&&m.__html)m=m.__html;if(!(this instanceof l)){if(m instanceof l)return m;return new l(m);}this._content=m;this._defer=false;this._extra_action='';this._nodes=null;this._inline_js=bagofholding;this._rootNode=null;return this;}l.isHTML=function(m){return m&&(m instanceof l||m.__html!==undefined);};l.replaceJSONWrapper=function(m){return m&&m.__html!==undefined?new l(m.__html):m;};i(l.prototype,{toString:function(){var m=this._content||'';if(this._extra_action)m+='<script type="text/javascript">'+this._extra_action+'</scr'+'ipt>';return m;},setAction:function(m){this._extra_action=m;return this;},getAction:function(){this._fillCache();var m=function(){this._inline_js();k(this._extra_action);}.bind(this);if(this.getDeferred()){return m.defer.bind(m);}else return m;},setDeferred:function(m){this._defer=!!m;return this;},getDeferred:function(){return this._defer;},getContent:function(){return this._content;},getNodes:function(){this._fillCache();return this._nodes;},getRootNode:function(){var m=this.getNodes();if(m.length===1){this._rootNode=m[0];}else{var n=document.createDocumentFragment();for(var o=0;o<m.length;o++)n.appendChild(m[o]);this._rootNode=n;}return this._rootNode;},_fillCache:function(){if(null!==this._nodes)return;var m=this._content;if(!m){this._nodes=[];return;}m=m.replace(/(<(\w+)[^>]*?)\/>/g,function(x,y,z){return z.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?x:y+'></'+z+'>';});var n=m.trim().toLowerCase(),o=document.createElement('div'),p=false,q=(!n.indexOf('<opt')&&[1,'<select multiple="multiple" class="__WRAPPER">','</select>'])||(!n.indexOf('<leg')&&[1,'<fieldset class="__WRAPPER">','</fieldset>'])||(n.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,'<table class="__WRAPPER">','</table>'])||(!n.indexOf('<tr')&&[2,'<table><tbody class="__WRAPPER">','</tbody></table>'])||((!n.indexOf('<td')||!n.indexOf('<th'))&&[3,'<table><tbody><tr class="__WRAPPER">','</tr></tbody></table>'])||(!n.indexOf('<col')&&[2,'<table><tbody></tbody><colgroup class="__WRAPPER">','</colgroup></table>'])||null;if(null===q){o.className='__WRAPPER';if(h.ie()){q=[0,'<span style="display:none">&nbsp;</span>',''];p=true;}else q=[0,'',''];}o.innerHTML=q[1]+m+q[2];while(q[0]--)o=o.lastChild;if(p)o.removeChild(o.firstChild);o.className!='__WRAPPER';if(h.ie()){var r;if(!n.indexOf('<table')&&-1==n.indexOf('<tbody')){r=o.firstChild&&o.firstChild.childNodes;}else if(q[1]=='<table>'&&-1==n.indexOf('<tbody')){r=o.childNodes;}else r=[];for(var s=r.length-1;s>=0;--s)if(r[s].nodeName&&r[s].nodeName.toLowerCase()=='tbody'&&r[s].childNodes.length==0)r[s].parentNode.removeChild(r[s]);}var t=o.getElementsByTagName('script'),u=[];for(var v=0;v<t.length;v++)if(t[v].src){u.push(g.requestResource.bind(g,'js',t[v].src));}else u.push(k.bind(null,t[v].innerHTML));for(var v=t.length-1;v>=0;v--)t[v].parentNode.removeChild(t[v]);var w=function(){for(var x=0;x<u.length;x++)u[x]();};this._nodes=j(o.childNodes);this._inline_js=w;}});e.exports=l;});
__d("isScalar",[],function(a,b,c,d,e,f){function g(h){return (/string|number|boolean/).test(typeof h);}e.exports=g;});
__d("Intl",[],function(a,b,c,d,e,f){function g(i){if(typeof i!='string')return false;return i.match(new RegExp(g.punct_char_class+'['+')"'+"'"+'\u00BB'+'\u0F3B'+'\u0F3D'+'\u2019'+'\u201D'+'\u203A'+'\u3009'+'\u300B'+'\u300D'+'\u300F'+'\u3011'+'\u3015'+'\u3017'+'\u3019'+'\u301B'+'\u301E'+'\u301F'+'\uFD3F'+'\uFF07'+'\uFF09'+'\uFF3D'+'\s'+']*$'));}g.punct_char_class='['+'.!?'+'\u3002'+'\uFF01'+'\uFF1F'+'\u0964'+'\u2026'+'\u0EAF'+'\u1801'+'\u0E2F'+'\uFF0E'+']';function h(i){var j=window.intl_locale_rewrites;if(j){var k=[],l=[];for(var m in j.patterns){var n=j.patterns[m];for(var o in j.meta){var p=new RegExp(o.slice(1,-1),'g'),q=j.meta[o];m=m.replace(p,q);n=n.replace(p,q);}k.push(m);l.push(n);}for(var r=0;r<k.length;r++){var s=new RegExp(k[r].slice(1,-1),'g');if(l[r]=='javascript'){i.replace(s,function(t){return t.slice(1).toLowerCase();});}else i=i.replace(s,l[r]);}}return i.replace(/\x01/g,'');}e.exports={endsInPunct:g,phonologicalRules:h};});
__d("tx",["Intl"],function(a,b,c,d,e,f){var g=b('Intl');function h(j,k){if(!k)return j;var l;for(var m in k){if(g.endsInPunct(k[m])){l=new RegExp('\\{'+m+'\\}'+g.endsInPunct.punct_char_class+'*','g');}else l=new RegExp('\\{'+m+'\\}','g');var n='\x01';j=j.replace(l,n+k[m]+n);}j=g.phonologicalRules(j);return j;}function i(j,k){if(typeof _string_table=='undefined')return;j=_string_table[j];return h(j,k);}i._=h;e.exports=i;});
__d("DOM",["event-extensions","CSS","DOMQuery","HTML","UserAgent","$","copyProperties","createArrayFrom","isScalar","tx"],function(a,b,c,d,e,f){b('event-extensions');var g=b('CSS'),h=b('DOMQuery'),i=b('HTML'),j=b('UserAgent'),k=b('$'),l=b('copyProperties'),m=b('createArrayFrom'),n=b('isScalar'),o=b('tx'),p='js_',q=0,r={};l(r,h);l(r,{create:function(v,w,x){var y=document.createElement(v);if(w)r.setAttributes(y,w);if(x!=null)r.setContent(y,x);return y;},setAttributes:function(v,w){if(w.type)v.type=w.type;for(var x in w){var y=w[x],z=(/^on/i).test(x);if(x=='type'){continue;}else if(x=='style'){if(typeof y=='string'){v.style.cssText=y;}else l(v.style,y);}else if(z){Event.listen(v,x.substr(2),y);}else if(x in v){v[x]=y;}else if(v.setAttribute)v.setAttribute(x,y);}},prependContent:function(v,w){return s(w,v,function(x){v.firstChild?v.insertBefore(x,v.firstChild):v.appendChild(x);});},insertAfter:function(v,w){var x=v.parentNode;return s(w,x,function(y){v.nextSibling?x.insertBefore(y,v.nextSibling):x.appendChild(y);});},insertBefore:function(v,w){var x=v.parentNode;return s(w,x,function(y){x.insertBefore(y,v);});},setContent:function(v,w){r.empty(v);return r.appendContent(v,w);},appendContent:function(v,w){return s(w,v,function(x){v.appendChild(x);});},replace:function(v,w){var x=v.parentNode;return s(w,x,function(y){x.replaceChild(y,v);});},remove:function(v){v=k(v);if(v.parentNode)v.parentNode.removeChild(v);},empty:function(v){v=k(v);while(v.firstChild)r.remove(v.firstChild);},getID:function(v){var w=v.id;if(!w){w=p+q++;v.id=w;}return w;}});function s(v,w,x){v=i.replaceJSONWrapper(v);if(v instanceof i&&''===w.innerHTML&&-1===v.toString().indexOf('<scr'+'ipt')){var y=j.ie();if(!y||(y>7&&!h.isNodeOfType(w,['table','tbody','thead','tfoot','tr','select','fieldset']))){var z=y?'<em style="display:none;">&nbsp;</em>':'';w.innerHTML=z+v;y&&w.removeChild(w.firstChild);return m(w.childNodes);}}else if(h.isTextNode(w)){w.data=v;return [v];}var aa=document.createDocumentFragment(),ba,ca=[],da=[];if(!Array.isArray(v))v=[v];for(var ea=0;ea<v.length;ea++){ba=i.replaceJSONWrapper(v[ea]);if(ba instanceof i){da.push(ba.getAction());var fa=ba.getNodes();for(var ga=0;ga<fa.length;ga++){ca.push(fa[ga]);aa.appendChild(fa[ga]);}}else if(n(ba)){var ha=document.createTextNode(ba);ca.push(ha);aa.appendChild(ha);}else if(h.isNode(ba)){ca.push(ba);aa.appendChild(ba);}}x(aa);da.forEach(function(ia){ia();});return ca;}function t(v){function w(x){return r.create('div',{},x).innerHTML;}return function(x,y){var z={};if(y)for(var aa in y)z[aa]=w(y[aa]);return i(v(x,z));};}r.tx=t(o);r.tx._=r._tx=t(o._);function u(v,w,x){if(typeof w!='object'||h.isNode(w)||Array.isArray(w)||i.isHTML(w)){x=w;w=null;}return r.create(v,w,x);}r.$N=u;e.exports=r;});
__d("AsyncDOM",["CSS","DOM"],function(a,b,c,d,e,f){var g=b('CSS'),h=b('DOM'),i={invoke:function(j,k){for(var l=0;l<j.length;++l){var m=j[l],n=m[0],o=m[1],p=m[2],q=m[3],r=(p&&k)||null;if(o)r=h.scry(r||document.documentElement,o)[0];switch(n){case 'eval':(new Function(q)).apply(r);break;case 'hide':g.hide(r);break;case 'show':g.show(r);break;case 'setContent':h.setContent(r,q);break;case 'appendContent':h.appendContent(r,q);break;case 'prependContent':h.prependContent(r,q);break;case 'insertAfter':h.insertAfter(r,q);break;case 'insertBefore':h.insertBefore(r,q);break;case 'remove':h.remove(r);break;case 'replace':h.replace(r,q);break;default:}}}};e.exports=i;});
__d("AsyncResponse",["Bootloader","Env","copyProperties","tx"],function(a,b,c,d,e,f){var g=b('Bootloader'),h=b('Env'),i=b('copyProperties'),j=b('tx');function k(l,m){i(this,{error:0,errorSummary:null,errorDescription:null,onload:null,replay:false,payload:m||null,request:l||null,silentError:false,is_last:true});return this;}i(k,{defaultErrorHandler:function(l){try{if(!l.silentError){k.verboseErrorHandler(l);}else l.logErrorByGroup('silent',10);}catch(m){alert(l);}},verboseErrorHandler:function(l){try{var n=l.getErrorSummary(),o=l.getErrorDescription();l.logErrorByGroup('popup',10);if(l.silentError&&o=='')o="Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.";g.loadModules(['Dialog'],function(p){new p().setTitle(n).setBody(o).setButtons([p.OK]).setModal(true).setCausalElement(this.relativeTo).show();});}catch(m){alert(l);}}});i(k.prototype,{getRequest:function(){return this.request;},getPayload:function(){return this.payload;},getError:function(){return this.error;},getErrorSummary:function(){return this.errorSummary;},setErrorSummary:function(l){l=(l===undefined?null:l);this.errorSummary=l;return this;},getErrorDescription:function(){return this.errorDescription;},getErrorIsWarning:function(){return this.errorIsWarning;},logError:function(l,m){if(window.send_error_signal){var n={err_code:this.error,vip:(h.vip||'-')};if(m){n.duration=m.duration;n.xfb_ip=m.xfb_ip;}var o=this.request.getURI();n.path=o||'-';n.aid=this.request.userActionID;if(o&&o.indexOf('scribe_endpoint.php')!=-1)l='async_error_double';send_error_signal(l,JSON.stringify(n));}},logErrorByGroup:function(l,m){if(Math.floor(Math.random()*m)==0)if(this.error==1357010||this.error<15000){this.logError('async_error_oops_'+l);}else this.logError('async_error_logic_'+l);}});e.exports=k;});
__d("Cookie",["Env"],function(a,b,c,d,e,f){var g=b('Env'),h={set:function(i,j,k,l,m){if(g.no_cookies&&i!='tpa')return;document.cookie=i+"="+encodeURIComponent(j)+"; "+(k?"expires="+(new Date(Date.now()+k)).toGMTString()+"; ":"")+"path="+(l||'/')+"; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1')+(m?"; secure":"");},clear:function(i){document.cookie=i+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; "+"path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');},get:function(i){var j=document.cookie.match('(?:^|;\\s*)'+i+'=(.*?)(?:;|$)');return (j?decodeURIComponent(j[1]):j);}};e.exports=h;});
__d("JSCC",["isEmpty"],function(a,b,c,d,e,f){var g=b('isEmpty'),h={},i={};function j(m){var n,o=false;return function(){if(!o){n=m();o=true;}return n;};}function k(m,n){if(g(m))return;for(var o in m){h[o]=j(m[o]);if(n){if(!i[n])i[n]=[];i[n].push(o);}}}var l={get:function(m){if(!h[m])throw new Error('JSCC entry is missing');return h[m]();},init:function(m){k(m);},initForPagelet:function(m,n){k(n,m);},clearForPagelet:function(m){if(i[m]){for(var n=0;n<i[m].length;n++){var o=i[m][n];delete h[o];}delete i[m];}}};e.exports=l;});
__d("Run",["Arbiter","OnloadEvent"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('OnloadEvent'),i=g.BEHAVIOR_STATE;function j(x){var y=a.CavalryLogger;y&&y.getInstance().setTimeStamp(x);}function k(){return !window.loading_page_chrome;}function l(x){var y=a.OnloadHooks;if(window.loaded&&y){y.runHook(x,'onlateloadhooks');}else q('onloadhooks',x);}function m(x){var y=a.OnloadHooks;if(window.afterloaded&&y){setTimeout(function(){y.runHook(x,'onlateafterloadhooks');},0);}else q('onafterloadhooks',x);}function n(x,y){if(y===undefined)y=k();y?q('onbeforeleavehooks',x):q('onbeforeunloadhooks',x);}function o(x){if(!window.onunload)window.onunload=function(){g.inform(h.ONUNLOAD,true,i);};q('onunloadhooks',x);}function p(x){q('onleavehooks',x);}function q(x,y){window[x]=(window[x]||[]).concat(y);}function r(x){window[x]=[];}function s(){g.inform(h.ONLOAD_DOMCONTENT,true,i);}a._domcontentready=s;function t(){var x=document,y=window;if(x.addEventListener){var z=/AppleWebKit.(\d+)/.exec(navigator.userAgent);if(z&&z[1]<525){var aa=setInterval(function(){if(/loaded|complete/.test(x.readyState)){s();clearInterval(aa);}},10);}else x.addEventListener("DOMContentLoaded",s,true);}else{var ba='javascript:void(0)';if(y.location.protocol=='https:')ba='//:';x.write('<script onreadystatechange="if (this.readyState==\'complete\') {'+'this.parentNode.removeChild(this);_domcontentready();}" '+'defer="defer" src="'+ba+'"><\/script\>');}var ca=y.onload;y.onload=function(){j('t_layout');ca&&ca();g.inform(h.ONLOAD,true,i);};y.onbeforeunload=function(){var da={};g.inform(h.ONBEFOREUNLOAD,da,i);if(!da.warn)g.inform('onload/exit',true);return da.warn;};}var u=g.registerCallback(function(){j('t_onload');g.inform(h.ONLOAD_CALLBACK,true,i);},[h.ONLOAD]),v=g.registerCallback(function(){j('t_domcontent');g.inform(h.ONLOAD_DOMCONTENT_CALLBACK,true,i);},[h.ONLOAD_DOMCONTENT]);t();var w={onLoad:l,onAfterLoad:m,onLeave:p,onBeforeUnload:n,onUnload:o,__domContentCallback:v,__onloadCallback:u,__removeHook:r};e.exports=w;});
__d("ServerJS",["function-extensions","ErrorUtils","copyProperties"],function(a,b,c,d,e,f){b('function-extensions');var g=b('ErrorUtils'),h=b('copyProperties');function i(){this._moduleMap={};this._relativeTo=null;}h(i.prototype,{handle:function(n){g.applyWithGuard(function(o){k(o.define||[],this._handleDefine,this);k(o.markup||[],this._handleMarkup,this);k(o.elements||[],this._handleElement,this);k(o.instances||[],this._handleInstance,this);k(o.require||[],this._handleRequire,this);},this,[].concat(n));},handlePartial:function(n){(n.instances||[]).forEach(l.curry(this._moduleMap,3));(n.markup||[]).forEach(l.curry(this._moduleMap,2));this.handle(n);},cleanup:function(){var n=[];for(var o in this._moduleMap)n.push(o);d.call(null,n,m);this._moduleMap={};},setRelativeTo:function(n){this._relativeTo=n;return this;},_handleDefine:function(n,o,p){define(n,o,function(){this._replaceTransportMarkers(p);return p;}.bind(this));},_handleRequire:function(n,o,p,q){var r=[n].concat(p||[]);d(r,function(s){q&&this._replaceTransportMarkers(q);if(o){if(!s[o])throw new TypeError('Module '+n+' has no method '+o);s[o].apply(s,q||[]);}}.bind(this));},_handleInstance:function(n,o,p,q){var r=null;if(o)r=function(s){this._replaceTransportMarkers(p);var t=Object.create(s.prototype);s.apply(t,p);return t;}.bind(this);define(n,o,r,0,null,q);},_handleMarkup:function(n,o,p){define(n,['HTML'],function(q){return q.replaceJSONWrapper(o).getRootNode();},0,null,p);},_handleElement:function(n,o,p,q){var r=q?[q]:[];define(n,r,function(s){var t=j(o,s);return t;},0,null,p);},_replaceTransportMarkers:function(n,o){var p=(typeof o!=='undefined')?n[o]:n,q;if(Array.isArray(p)){for(q=0;q<p.length;q++)this._replaceTransportMarkers(p,q);}else if(p&&typeof p=='object')if(p.__m){n[o]=b(p.__m);}else if(p.__rel){n[o]=this._relativeTo;}else for(var r in p)this._replaceTransportMarkers(p,r);}});function j(n,o){var p,q,r;if(o){if(o.id==n){p=o;}else if(o.getElementsByTagName){q=o.getElementsByTagName('*');for(r=0;r<q.length;r++)if(q[r].id==n){p=q[r];break;}}else{q=o.childNodes;for(r=0;r<q.length;r++){p=j(n,q[r]);if(p)break;}}}else p=document.getElementById(n);return p;}function k(n,o,p){for(var q=0;q<n.length;q++)o.apply(p,[].concat(n[q]));}function l(n,o,p){var q=p[0];if(!(q in n))p[o]=(p[o]||0)+1;n[q]=true;}function m(){return {};}e.exports=i;});
__d("goURI",[],function(a,b,c,d,e,f){function g(h,i){h=h.toString();if(!i&&a.PageTransitions&&PageTransitions.isInitialized()){PageTransitions.go(h);}else if(window.location.href==h){window.location.reload();}else window.location.href=h;}e.exports=g;});
__d("URI",["copyProperties","goURI"],function(a,b,c,d,e,f){var g=b('copyProperties'),h=b('goURI');function i(j){if(!(this instanceof i))return new i(j||window.location.href);this.parse(j||'');}g(i,{getRequestURI:function(j,k){j=j===undefined||j;if(j&&window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getCurrentURI(!!k).getQualifiedURI();}else return new i(window.location.href);},getMostRecentURI:function(){if(window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getMostRecentURI().getQualifiedURI();}else return new i(window.location.href);},getNextURI:function(){if(window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getNextURI().getQualifiedURI();}else return new i(window.location.href);},expression:/(((\w+):\/\/)([^\/:]*)(:(\d+))?)?([^#?]*)(\?([^#]*))?(#(.*))?/,arrayQueryExpression:/^(\w+)((?:\[\w*\])+)=?(.*)/,explodeQuery:function(j){if(!j)return {};var k={};j=j.replace(/%5B/ig,'[').replace(/%5D/ig,']');j=j.split('&');for(var l=0,m=j.length;l<m;l++){var n=j[l].match(i.arrayQueryExpression);if(!n){var o=j[l].split('=');k[i.decodeComponent(o[0])]=o[1]===undefined?null:i.decodeComponent(o[1]);}else{var p=n[2].split(/\]\[|\[|\]/).slice(0,-1),q=n[1],r=i.decodeComponent(n[3]||'');p[0]=q;var s=k;for(var t=0;t<p.length-1;t++)if(p[t]){if(s[p[t]]===undefined)if(p[t+1]&&!p[t+1].match(/^\d+$/)){s[p[t]]={};}else s[p[t]]=[];s=s[p[t]];}else{if(p[t+1]&&!p[t+1].match(/^\d+$/)){s.push({});}else s.push([]);s=s[s.length-1];}if(s instanceof Array&&p[p.length-1]===''){s.push(r);}else s[p[p.length-1]]=r;}}return k;},implodeQuery:function(j,k,l){k=k||'';if(l===undefined)l=true;var m=[];if(j===null||j===undefined){m.push(l?i.encodeComponent(k):k);}else if(j instanceof Array){for(var n=0;n<j.length;++n)try{if(j[n]!==undefined)m.push(i.implodeQuery(j[n],k?(k+'['+n+']'):n));}catch(o){}}else if(typeof(j)=='object'){if(('nodeName' in j)&&('nodeType' in j)){m.push('{node}');}else for(var p in j)try{if(j[p]!==undefined)m.push(i.implodeQuery(j[p],k?(k+'['+p+']'):p));}catch(o){}}else if(l){m.push(i.encodeComponent(k)+'='+i.encodeComponent(j));}else m.push(k+'='+j);return m.join('&');},encodeComponent:function(j){return encodeURIComponent(j).replace(/%5D/g,"]").replace(/%5B/g,"[");},decodeComponent:function(j){return decodeURIComponent(j.replace(/\+/g,' '));},INVALID_DOMAIN:'invalid.invalid',sanitizeDomain:function(j){var k=new RegExp('[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f'+'\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF'+'\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]');if(k.test(j)){return i.INVALID_DOMAIN;}else return j;}});g(i.prototype,{parse:function(j){var k=j.toString().match(i.expression);g(this,{protocol:k[3]||'',domain:i.sanitizeDomain(k[4]||''),port:k[6]||'',path:k[7]||'',query_s:k[9]||'',fragment:k[11]||''});return this;},setProtocol:function(j){this.protocol=j;return this;},getProtocol:function(){return this.protocol;},setQueryData:function(j){this.query_s=i.implodeQuery(j);return this;},addQueryData:function(j){return this.setQueryData(g(this.getQueryData(),j));},removeQueryData:function(j){if(!(j instanceof Array))j=[j];var k=this.getQueryData();for(var l=0,m=j.length;l<m;++l)delete k[j[l]];return this.setQueryData(k);},getQueryData:function(){return i.explodeQuery(this.query_s);},setFragment:function(j){this.fragment=j;return this;},getFragment:function(){return this.fragment;},setDomain:function(j){this.domain=i.sanitizeDomain(j);return this;},getDomain:function(){return this.domain;},setPort:function(j){this.port=j;return this;},getPort:function(){return this.port;},setPath:function(j){this.path=j;return this;},getPath:function(){return this.path.replace(/^\/+/,'/');},isEmpty:function(){return !(this.path||this.protocol||this.domain||this.port||this.query_s||this.fragment);},toString:function(){var j='';this.protocol&&(j+=this.protocol+'://');this.domain&&(j+=this.domain);this.port&&(j+=':'+this.port);if(this.domain&&!this.path)j+='/';this.path&&(j+=this.path);this.query_s&&(j+='?'+this.query_s);this.fragment&&(j+='#'+this.fragment);return j;},valueOf:function(){return this.toString();},isFacebookURI:function(){if(!i._facebookURIRegex)i._facebookURIRegex=new RegExp('(^|\\.)facebook\\.com([^.]*)$','i');return (!this.domain||i._facebookURIRegex.test(this.domain));},isQuicklingEnabled:function(){return window.Quickling&&Quickling.isActive()&&Quickling.isPageActive(this);},getRegisteredDomain:function(){if(!this.domain)return '';if(!this.isFacebookURI())return null;var j=this.domain.split('.'),k=j.indexOf('facebook');return j.slice(k).join('.');},getUnqualifiedURI:function(){return new i(this).setProtocol(null).setDomain(null).setPort(null);},getQualifiedURI:function(){var j=new i(this);if(!j.getDomain()){var k=i();j.setProtocol(k.getProtocol()).setDomain(k.getDomain()).setPort(k.getPort());}return j;},isSameOrigin:function(j){var k=j||window.location.href;if(!(k instanceof i))k=new i(k.toString());if(this.getProtocol()&&this.getProtocol()!=k.getProtocol())return false;if(this.getDomain()&&this.getDomain()!=k.getDomain())return false;return true;},go:function(j){h(this,j);},setSubdomain:function(j){var k=new i(this).getQualifiedURI(),l=k.getDomain().split('.');if(l.length<=2){l.unshift(j);}else l[0]=j;return k.setDomain(l.join('.'));},getSubdomain:function(){if(!this.getDomain())return '';var j=this.getDomain().split('.');if(j.length<=2){return '';}else return j[0];},setSecure:function(j){return this.setProtocol(j?'https':'http');},isSecure:function(){return this.getProtocol()=='https';}});e.exports=i;});
__d("XHR",[],function(a,b,c,d,e,f){var g={create:function(){try{return a.XMLHttpRequest?new a.XMLHttpRequest():new ActiveXObject("MSXML2.XMLHTTP.3.0");}catch(h){}}};e.exports=g;});
__d("bind",[],function(a,b,c,d,e,f){function g(h,i){var j=Array.prototype.slice.call(arguments,2);if(typeof i!='string')return Function.prototype.bind.apply(i,[h].concat(j));function k(){var l=j.concat(Array.prototype.slice.call(arguments));if(h[i])return h[i].apply(h,l);}k.toString=function(){return 'bound lazily: '+h[i];};return k;}e.exports=g;});
__d("AsyncRequest",["event-extensions","Arbiter","AsyncDOM","AsyncResponse","Bootloader","Cookie","CSS","Env","JSCC","Parent","Run","ServerJS","URI","UserAgent","XHR","bind","copyProperties","evalGlobal","ge","goURI","isEmpty","tx"],function(a,b,c,d,e,f){b('event-extensions');var g=b('Arbiter'),h=b('AsyncDOM'),i=b('AsyncResponse'),j=b('Bootloader'),k=b('Cookie'),l=b('CSS'),m=b('Env'),n=b('JSCC'),o=b('Parent'),p=b('Run'),q=b('ServerJS'),r=b('URI'),s=b('UserAgent'),t=b('XHR'),u=b('bind'),v=b('copyProperties'),w=b('evalGlobal'),x=b('ge'),y=b('goURI'),z=b('isEmpty'),aa=b('tx');function ba(){try{return !window.loaded;}catch(ja){return true;}}function ca(ja){return ('upload' in ja)&&('onprogress' in ja.upload);}function da(ja){return ja.status in {0:1,12029:1,12030:1,12031:1,12152:1};}function ea(ja){var ka=!ja||typeof(ja)==='function';return ka;}var fa=2,ga=fa;g.subscribe('page_transition',function(ja,ka){ga=ka.id;});function ha(ja){v(this,{transport:null,method:'POST',uri:'',timeout:null,timer:null,initialHandler:bagofholding,handler:null,uploadProgressHandler:null,errorHandler:null,transportErrorHandler:null,timeoutHandler:null,finallyHandler:bagofholding,serverDialogCancelHandler:null,relativeTo:null,statusElement:null,statusClass:'',data:{},file:null,context:{},readOnly:false,writeRequiredParams:[],remainingRetries:0,userActionID:'-'});this.option={asynchronous:true,suppressErrorHandlerWarning:false,suppressEvaluation:false,suppressErrorAlerts:false,retries:0,jsonp:false,bundle:false,useIframeTransport:false,tfbEndpoint:true,handleErrorAfterUnload:false};this.errorHandler=i.defaultErrorHandler;this.transportErrorHandler=u(this,'errorHandler');if(ja!==undefined)this.setURI(ja);}v(ha,{bootstrap:function(ja,ka,la){var ma='GET',na=true,oa={};if(la||ka&&(ka.rel=='async-post'||ka.getAttribute&&ka.getAttribute('forcemethod')=='post')){ma='POST';na=false;if(ja){ja=r(ja);oa=ja.getQueryData();ja.setQueryData({});}}var pa=o.byClass(ka,'stat_elem')||ka;if(pa&&l.hasClass(pa,'async_saving'))return false;var qa=new ha(ja).setReadOnly(na).setMethod(ma).setData(oa).setNectarModuleDataSafe(ka).setRelativeTo(ka);if(ka){qa.setHandler(function(sa){Event.fire(ka,'success',{response:sa});});qa.setErrorHandler(function(sa){if(Event.fire(ka,'error',{response:sa})!==false)i.defaultErrorHandler(sa);});}if(pa){qa.setStatusElement(pa);var ra=pa.getAttribute('data-status-class');ra&&qa.setStatusClass(ra);}if(ka)Event.fire(ka,'AsyncRequest/send',{request:qa});qa.send();return false;},post:function(ja,ka){new ha(ja).setReadOnly(false).setMethod('POST').setData(ka).send();return false;},getLastID:function(){return fa;},suppressOnloadToken:{},_inflight:[],_inflightCount:0,_inflightAdd:bagofholding,_inflightPurge:bagofholding,getInflightCount:function(){return this._inflightCount;},_inflightEnable:function(){if(s.ie()){v(ha,{_inflightAdd:function(ja){this._inflight.push(ja);},_inflightPurge:function(){ha._inflight=ha._inflight.filter(function(ja){return ja.transport&&ja.transport.readyState<4;});}});p.onUnload(function(){ha._inflight.forEach(function(ja){if(ja.transport&&ja.transport.readyState<4){ja.transport.abort();delete ja.transport;}});});}}});v(ha.prototype,{_dispatchResponse:function(ja){try{this.clearStatusIndicator();if(!this._isRelevant()){this._invokeErrorHandler(1010);return;}if(this.initialHandler(ja)===false)return;clearTimeout(this.timer);if(ja.jscc_map){var la=(eval)(ja.jscc_map);n.init(la);}var ma;if(this.handler)try{ma=this._shouldSuppressJS(this.handler(ja));}catch(na){ja.is_last&&this.finallyHandler(ja);throw na;}if(!ma)this._handleJSResponse(ja);ja.is_last&&this.finallyHandler(ja);}catch(ka){}},_shouldSuppressJS:function(ja){return ja===ha.suppressOnloadToken;},_handleJSResponse:function(ja){var ka=this.getRelativeTo(),la=ja.domops,ma=ja.jsmods,na=new q().setRelativeTo(ka);if(ma&&(ma.define||ma.instances||ma.markup)){na.handle({define:ma.define,instances:ma.instances,markup:ma.markup});delete ma.define;delete ma.instances;delete ma.markup;}if(la)h.invoke(la,ka);if(ma)na.handle(ma);this._handleJSRegisters(ja,'onload');if(this.lid)g.inform('tti_ajax',{s:this.lid,d:[this._sendTimeStamp||0,(this._sendTimeStamp&&this._responseTime)?(this._responseTime-this._sendTimeStamp):0]},g.BEHAVIOR_EVENT);this._handleJSRegisters(ja,'onafterload');},_handleJSRegisters:function(ja,ka){var la=ja[ka];if(!la)return;for(var ma=0;ma<la.length;ma++)try{(new Function(la[ma])).apply(this);}catch(na){}},invokeResponseHandler:function(ja){if(typeof(ja.redirect)!=='undefined'){(function(){this.setURI(ja.redirect).send();}).bind(this).defer();return;}if(!this.handler&&!this.errorHandler&&!this.transportErrorHandler)return;if(typeof(ja.asyncResponse)!=='undefined'){if(!this._isRelevant()){this._invokeErrorHandler(1010);return;}var ka=ja.asyncResponse;if(ka.inlinejs)w(ka.inlinejs);if(ka.lid){this._responseTime=Date.now();if(a.CavalryLogger)this.cavalry=a.CavalryLogger.getInstance(ka.lid);this.lid=ka.lid;}j.setResourceMap(ka.resource_map);if(ka.bootloadable)j.enableBootload(ka.bootloadable);var la;if(ka.getError()&&!ka.getErrorIsWarning()){var ma=this.errorHandler.bind(this);la=this._dispatchErrorResponse.bind(this,ka,ma);}else la=this._dispatchResponse.bind(this,ka);la=la.defer.bind(la);var na=false;if(this.preBootloadHandler)na=this.preBootloadHandler(ka);ka.css=ka.css||[];ka.js=ka.js||[];j.loadResources(ka.css.concat(ka.js),la,na,this.getURI());}else if(typeof(ja.transportError)!=='undefined'){if(this._xFbServer){this._invokeErrorHandler(1008);}else this._invokeErrorHandler(1012);}else this._invokeErrorHandler(1007);},_invokeErrorHandler:function(ja){if(ba()&&!this.getOption('handleErrorAfterUnload'))return;var ka;if(this.responseText===''){ka=1002;}else if(this._requestAborted){ka=1011;}else{try{ka=ja||this.transport.status||1004;}catch(la){ka=1005;}if(false===navigator.onLine)ka=1006;}if(!this.transportErrorHandler)return;var ma=this.transportErrorHandler.bind(this),na,oa,pa=true;if(ka===1006){oa="No Network Connection";na="Your browser appears to be offline. Please check your internet connection and try again.";}else if(ka>=300&&ka<=399){oa="Redirection";na="Your access to Facebook was redirected or blocked by a third party at this time, please contact your ISP or reload. ";var qa=this.transport.getResponseHeader("Location");if(qa)y(qa,true);pa=true;}else{oa="Oops!";na="Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.";}!this.getOption('suppressErrorAlerts');var ra=new i(this);v(ra,{error:ka,errorSummary:oa,errorDescription:na,silentError:pa});this._dispatchErrorResponse(ra,ma);},_dispatchErrorResponse:function(ja,ka){var la=ja.getError();try{this.clearStatusIndicator();var na=this._sendTimeStamp&&{duration:Date.now()-this._sendTimeStamp,xfb_ip:this._xFbServer||'-'};ja.logError('async_error',na);if(!this._isRelevant()||la===1010)return;if(la==1357008||la==1357007||la==1442002||la==1357001){var oa=la==1357008||la==1357007;this._displayServerDialog(ja,oa);}else if(this.initialHandler(ja)!==false){clearTimeout(this.timer);try{ka(ja);}catch(pa){this.finallyHandler(ja);throw pa;}this.finallyHandler(ja);}}catch(ma){}},_displayServerDialog:function(ja,ka){var la=ja.getPayload().__dialog;j.loadModules(['Dialog'],function(ma){var na=new ma(la);if(ka)na.setHandler(this._displayConfirmationHandler.bind(this,na));na.setCancelHandler(function(){var oa=this.getServerDialogCancelHandler();try{oa&&oa();}catch(pa){throw pa;}finally{this.finallyHandler(ja);}}.bind(this)).setCausalElement(this.relativeTo).show();}.bind(this));},_displayConfirmationHandler:function(ja){this.data.confirmed=1;v(this.data,ja.getFormData());this.send();},_handleJSONPResponse:function(ja){this.is_first=(this.is_first===undefined);var ka=this._interpretResponse(ja);ka.asyncResponse.is_first=this.is_first;ka.asyncResponse.is_last=this.transport.hasFinished();this.invokeResponseHandler(ka);if(this.transport.hasFinished())delete this.transport;},_handleXHRResponse:function(ja){var ka;if(this.getOption('suppressEvaluation')){ka={asyncResponse:new i(this,ja)};}else{var la=ja.responseText,ma=null;try{var oa=this._unshieldResponseText(la);try{var pa=(eval)('('+oa+')');ka=this._interpretResponse(pa);}catch(na){ma='excep';ka={transportError:'eval() failed on async to '+this.getURI()};}}catch(na){ma='empty';ka={transportError:na.message};}if(ma)a.send_error_signal&&a.send_error_signal('async_xport_resp',[(this._xFbServer?'1008_':'1012_')+ma,this._xFbServer||'-',this.getURI(),la.length,la.substr(0,1600)].join(':'));}this.invokeResponseHandler(ka);},_unshieldResponseText:function(ja){var ka="for (;;);",la=ka.length;if(ja.length<=la)throw new Error('Response too short on async to '+this.getURI());var ma=0;while(ja.charAt(ma)==" "||ja.charAt(ma)=="\n")ma++;ma&&ja.substring(ma,ma+la)==ka;return ja.substring(ma+la);},_interpretResponse:function(ja){if(ja.redirect)return {redirect:ja.redirect};var ka=new i(this);if(ja.__ar!=1){ka.payload=ja;}else v(ka,ja);return {asyncResponse:ka};},_onStateChange:function(){try{if(this.transport.readyState==4){ha._inflightCount--;ha._inflightPurge();try{if(typeof(this.transport.getResponseHeader)!=='undefined'&&this.transport.getResponseHeader('X-FB-Debug'))this._xFbServer=this.transport.getResponseHeader('X-FB-Debug');}catch(ka){}if(this.transport.status>=200&&this.transport.status<300){ha.lastSuccessTime=Date.now();this._handleXHRResponse(this.transport);}else if(s.safari()&&(typeof(this.transport.status)=='undefined')){this._invokeErrorHandler(1002);}else if(m.retry_ajax_on_network_error&&da(this.transport)&&this.remainingRetries>0){this.remainingRetries--;delete this.transport;this.send(true);return;}else this._invokeErrorHandler();if(this.getOption('asynchronous')!==false)delete this.transport;}}catch(ja){if(ba())return;delete this.transport;if(this.remainingRetries>0){this.remainingRetries--;this.send(true);}else{!this.getOption('suppressErrorAlerts');a.send_error_signal&&a.send_error_signal('async_xport_resp',[1007,this._xFbServer||'-',this.getURI(),ja.message].join(':'));this._invokeErrorHandler(1007);}}},_isMultiplexable:function(){if(this.getOption('jsonp')||this.getOption('useIframeTransport'))return false;if(!this.uri.isFacebookURI())return false;if(!this.getOption('asynchronous'))return false;return true;},handleResponse:function(ja){var ka=this._interpretResponse(ja);this.invokeResponseHandler(ka);},setMethod:function(ja){this.method=ja.toString().toUpperCase();return this;},getMethod:function(){return this.method;},setData:function(ja){this.data=ja;return this;},_setDataHash:function(){if(this.method!='POST'||!this.getOption('tfbEndpoint')||this.data.phstamp)return;var ja=r.implodeQuery(this.data).length,ka='';for(var la=0;la<this.data.fb_dtsg.length;la++)ka+=this.data.fb_dtsg.charCodeAt(la);this.data.phstamp='1'+ka+ja;},setRawData:function(ja){this.rawData=ja;return this;},getData:function(){return this.data;},setContextData:function(ja,ka,la){la=la===undefined?true:la;if(la)this.context['_log_'+ja]=ka;return this;},_setUserActionID:function(){var ja=a.ArbiterMonitor&&a.ArbiterMonitor.getUE()||'-';this.userActionID=(a.EagleEye&&a.EagleEye.getSessionID()||'-')+'/'+ja;},setURI:function(ja){var ka=r(ja);if(this.getOption('useIframeTransport')&&!ka.isFacebookURI())return this;if(!this.getOption('jsonp')&&!this.getOption('useIframeTransport')&&!ka.isSameOrigin())return this;this._setUserActionID();if(!ja||ka.isEmpty()){if(a.send_error_signal&&a.get_error_stack){var la={err_code:1013,vip:'-',duration:0,xfb_ip:'-',path:window.location.href,aid:this.userActionID};a.send_error_signal('async_error',JSON.stringify(la));a.send_error_signal('async_xport_stack',[1013,window.location.href,null,a.get_error_stack()].join(':'));}return this;}this.uri=ka;return this;},getURI:function(){return this.uri.toString();},setInitialHandler:function(ja){this.initialHandler=ja;return this;},setHandler:function(ja){if(ea(ja))this.handler=ja;return this;},getHandler:function(){return this.handler;},setUploadProgressHandler:function(ja){if(ea(ja))this.uploadProgressHandler=ja;return this;},setErrorHandler:function(ja){if(ea(ja))this.errorHandler=ja;return this;},setTransportErrorHandler:function(ja){this.transportErrorHandler=ja;return this;},getErrorHandler:function(){return this.errorHandler;},getTransportErrorHandler:function(){return this.transportErrorHandler;},setTimeoutHandler:function(ja,ka){if(ea(ka)){this.timeout=ja;this.timeoutHandler=ka;}return this;},resetTimeout:function(ja){if(!(this.timeoutHandler===null))if(ja===null){this.timeout=null;clearTimeout(this.timer);this.timer=null;}else{var ka=!this._allowCrossPageTransition;this.timeout=ja;clearTimeout(this.timer);this.timer=this._handleTimeout.bind(this).defer(this.timeout,ka);}return this;},_handleTimeout:function(){this.abandon();this.timeoutHandler(this);},setNewSerial:function(){this.id=++fa;return this;},setFinallyHandler:function(ja){this.finallyHandler=ja;return this;},getServerDialogCancelHandler:function(){return this.serverDialogCancelHandler;},setServerDialogCancelHandler:function(ja){this.serverDialogCancelHandler=ja;return this;},setPreBootloadHandler:function(ja){this.preBootloadHandler=ja;return this;},setReadOnly:function(ja){if(!(typeof(ja)!='boolean'))this.readOnly=ja;return this;},setFBMLForm:function(){this.writeRequiredParams=["fb_sig"];return this;},getReadOnly:function(){return this.readOnly;},setRelativeTo:function(ja){this.relativeTo=ja;return this;},getRelativeTo:function(){return this.relativeTo;},setStatusClass:function(ja){this.statusClass=ja;return this;},setStatusElement:function(ja){this.statusElement=ja;return this;},getStatusElement:function(){return x(this.statusElement);},_isRelevant:function(){if(this._allowCrossPageTransition)return true;if(!this.id)return true;return this.id>ga;},clearStatusIndicator:function(){var ja=this.getStatusElement();if(ja){l.removeClass(ja,'async_saving');l.removeClass(ja,this.statusClass);}},addStatusIndicator:function(){var ja=this.getStatusElement();if(ja){l.addClass(ja,'async_saving');l.addClass(ja,this.statusClass);}},specifiesWriteRequiredParams:function(){return this.writeRequiredParams.every(function(ja){this.data[ja]=this.data[ja]||m[ja]||(x(ja)||{}).value;if(this.data[ja]!==undefined)return true;return false;},this);},setOption:function(ja,ka){if(typeof(this.option[ja])!='undefined')this.option[ja]=ka;return this;},getOption:function(ja){typeof(this.option[ja])=='undefined';return this.option[ja];},abort:function(){if(this.transport){var ja=this.getTransportErrorHandler();this.setOption('suppressErrorAlerts',true);this.setTransportErrorHandler(bagofholding);this._requestAborted=true;this.transport.abort();this.setTransportErrorHandler(ja);}},abandon:function(){clearTimeout(this.timer);this.setOption('suppressErrorAlerts',true).setHandler(bagofholding).setErrorHandler(bagofholding).setTransportErrorHandler(bagofholding);if(this.transport){this._requestAborted=true;this.transport.abort();}},setNectarData:function(ja){if(ja){if(this.data.nctr===undefined)this.data.nctr={};v(this.data.nctr,ja);}return this;},setNectarModuleDataSafe:function(ja){if(this.setNectarModuleData)this.setNectarModuleData(ja);return this;},setNectarImpressionIdSafe:function(){if(this.setNectarImpressionId)this.setNectarImpressionId();return this;},setAllowCrossPageTransition:function(ja){this._allowCrossPageTransition=!!ja;if(this.timer)this.resetTimeout(this.timeout);return this;},send:function(ja){ja=ja||false;if(!this.uri)return false;!this.errorHandler&&!this.getOption('suppressErrorHandlerWarning');if(this.getOption('jsonp')&&this.method!='GET')this.setMethod('GET');if(this.getOption('useIframeTransport')&&this.method!='GET')this.setMethod('GET');this.timeoutHandler!==null&&(this.getOption('jsonp')||this.getOption('useIframeTransport'));if(!this.getReadOnly()){this.specifiesWriteRequiredParams();if(this.method!='POST')return false;}if(this.method=='POST'&&this.getOption('tfbEndpoint')){this.data.fb_dtsg=m.fb_dtsg;this.data.lsd=k.get('lsd');if(!this.data.lsd)delete this.data.lsd;}if(!z(this.context)&&this.getOption('tfbEndpoint')){v(this.data,this.context);this.data.ajax_log=1;}if(m.force_param)v(this.data,m.force_param);this.data.__user=m.user;this._setUserActionID();if(this.getOption('bundle')&&this._isMultiplexable()){ia.schedule(this);return true;}this.setNewSerial();if(this.getOption('tfbEndpoint')){this.uri.addQueryData({__a:1});if(!this.getOption('asynchronous'))this.uri.addQueryData({__s:1});if(m.fb_isb)this.uri.addQueryData({fb_isb:m.fb_isb});}this.finallyHandler=a.async_callback(this.finallyHandler,'final');var ka,la;if(this.method=='GET'||this.rawData){ka=this.uri.addQueryData(this.data).toString();la=this.rawData||'';}else{ka=this.uri.toString();this._setDataHash();la=r.implodeQuery(this.data);}if(this.transport)return false;if(this.getOption('jsonp')||this.getOption('useIframeTransport')){d(['JSONPTransport'],function(pa){this.transport=new pa(this.getOption('jsonp')?'jsonp':'iframe',this.uri,this._handleJSONPResponse.bind(this));this.transport.send();}.bind(this));return true;}var ma=t.create();if(!ma)return false;ma.onreadystatechange=a.async_callback(this._onStateChange.bind(this),'xhr');if(this.uploadProgressHandler&&ca(ma))ma.upload.onprogress=this.uploadProgressHandler.bind(this);if(!ja)this.remainingRetries=this.getOption('retries');if(a.send_error_signal||a.ArbiterMonitor)this._sendTimeStamp=this._sendTimeStamp||Date.now();this.transport=ma;try{this.transport.open(this.method,ka,this.getOption('asynchronous'));}catch(na){return false;}var oa=m.svn_rev;if(oa)this.transport.setRequestHeader('X-SVN-Rev',String(oa));if(this.method=='POST'&&!this.rawData)this.transport.setRequestHeader('Content-Type','application/x-www-form-urlencoded');this.addStatusIndicator();this.transport.send(la);if(this.timeout!==null)this.resetTimeout(this.timeout);ha._inflightCount++;ha._inflightAdd(this);return true;}});function ia(){this._requests=[];}v(ia,{multiplex:null,schedule:function(ja){if(!ia.multiplex){ia.multiplex=new ia();(function(){ia.multiplex.send();ia.multiplex=null;}).defer();}ia.multiplex.add(ja);}});v(ia.prototype,{add:function(ja){this._requests.push(ja);},send:function(){var ja=this._requests;if(!ja.length)return;var ka;if(ja.length===1){ka=ja[0];}else{var la=ja.map(function(ma){return [ma.uri.getPath(),r.implodeQuery(ma.data)];});ka=new ha('/ajax/proxy.php').setAllowCrossPageTransition(true).setData({data:la}).setHandler(this._handler.bind(this)).setTransportErrorHandler(this._transportErrorHandler.bind(this));}ka.setOption('bundle',false).send();},_handler:function(ja){var ka=ja.getPayload().responses;if(ka.length!==this._requests.length)return;for(var la=0;la<this._requests.length;la++){var ma=this._requests[la],na=ma.uri.getPath();ma.id=this.id;if(ka[la][0]!==na){ma.invokeResponseHandler({transportError:'Wrong response order in bundled request to '+na});continue;}ma.handleResponse(ka[la][1]);}},_transportErrorHandler:function(ja){var ka={transportError:ja.errorDescription},la=this._requests.map(function(ma){ma.id=this.id;ma.invokeResponseHandler(ka);return ma.uri.getPath();});}});e.exports=ha;});
__d("legacy:async",["AsyncRequest","AsyncResponse"],function(a,b,c,d){a.AsyncRequest=b('AsyncRequest');a.AsyncResponse=b('AsyncResponse');},3);
__d("startsWith",[],function(a,b,c,d,e,f){function g(h,i){return h.lastIndexOf(i,0)===0;}e.exports=g;});
__d("AsyncRequestNectarLogging",["AsyncRequest","Env","copyProperties","startsWith"],function(a,b,c,d,e,f){var g=b('AsyncRequest'),h=b('Env'),i=b('copyProperties'),j=b('startsWith');i(g.prototype,{setNectarModuleData:function(k){if(this.method=='POST'){var l=h.module;if(k&&l===undefined){var m={fbpage_fan_confirm:1},n=null;for(var o=k;o&&o!=document.body;o=o.parentNode){if(!o.id||typeof o.id!=='string')continue;if(j(o.id,'pagelet_')){l=o.id;break;}if(!n&&m[o.id])n=o.id;}if(l===undefined&&n)l=n;}if(l!==undefined){if(this.data.nctr===undefined)this.data.nctr={};this.data.nctr._mod=l;}}},setNectarImpressionId:function(){if(this.method=='POST'){var k=h.impid;if(k!==undefined){if(this.data.nctr===undefined)this.data.nctr={};this.data.nctr._impid=k;}}}});});
__d("legacy:async-postlude",["AsyncRequestNectarLogging"],function(a,b,c,d){b('AsyncRequestNectarLogging');},3);
__d("legacy:bootloader",["Bootloader"],function(a,b,c,d){a.Bootloader=b('Bootloader');},3);
__d("Class",["function-extensions","Arbiter","copyProperties","createArrayFrom"],function(a,b,c,d,e,f){b('function-extensions');var g=b('Arbiter'),h=b('copyProperties'),i=b('createArrayFrom'),j={},k=null,l={extend:function(t,u){if(!k)k=g.subscribe(g.BOOTLOAD,n);if(typeof u=='string'){m(t,u);}else o(t,u);},mixin:function(t,u){for(var v=1,w=arguments.length;v<w;++v)h(arguments[0].prototype,arguments[v]);}};function m(t,u){t.__class_extending=true;var v=g.registerCallback(o.curry(t,u),[g.FUNCTION_EXTENSION+'/'+u,g.BOOTLOAD]);if(v!==null)j[u]=true;}function n(){for(var t in j)if(!!a[t]){delete j[t];if(!a[t].__class_extending){g.inform(g.FUNCTION_EXTENSION+'/'+t,true,g.BEHAVIOR_STATE);}else a[t].__class_name=t;}}function o(t,u){delete t.__class_extending;u=typeof u=='string'?a[u]:u;var v=p(u,0),w=p(t,v.prototype.__level+1);w.parent=v;if(!!t.__class_name)g.inform(g.FUNCTION_EXTENSION+'/'+t.__class_name,true,g.BEHAVIOR_STATE);}function p(t,u){if(t._metaprototype)return t._metaprototype;var v=new Function();v.construct=q;v.prototype.construct=s(t,u,true);v.prototype.__level=u;v.base=t;t.prototype.parent=v;t._metaprototype=v;return v;}function q(t){r(t.parent);var u=[],v=t;while(v.parent){var w=new v.parent();u.push(w);w.__instance=t;v=v.parent;}t.parent=u[1];u.reverse();u.pop();t.__parents=u;t.__instance=t;return t.parent.construct.apply(t.parent,arguments);}function r(t){if(t.initialized)return;var u=t.base.prototype;if(t.parent){r(t.parent);var v=t.parent.prototype;for(var w in v)if(w!='__level'&&w!='construct'&&u[w]===undefined)u[w]=t.prototype[w]=v[w];}t.initialized=true;var x=t.prototype.__level;for(var w in u)if(w!='parent')u[w]=t.prototype[w]=s(u[w],x);}function s(t,u,v){if(typeof t!='function'||t.__prototyped)return t;var w=function(){var x=this.__instance;if(x){var y=x.parent;x.parent=u?x.__parents[u-1]:null;var z=arguments;if(v){z=[];for(var aa=1;aa<arguments.length;aa++)z.push(arguments[aa]);}var ba=t.apply(x,z);x.parent=y;return ba;}else return t.apply(this,arguments);};w.__prototyped=true;return w;}e.exports=l;});
__d("legacy:Class",["Class"],function(a,b,c,d){a.Class=b('Class');},3);
__d("DOMDimensions",["DOMQuery"],function(a,b,c,d,e,f){var g=b('DOMQuery'),h={getElementDimensions:function(i){return {width:i.offsetWidth||0,height:i.offsetHeight||0};},getViewportDimensions:function(){var i=(window&&window.innerWidth)||(document&&document.documentElement&&document.documentElement.clientWidth)||(document&&document.body&&document.body.clientWidth)||0,j=(window&&window.innerHeight)||(document&&document.documentElement&&document.documentElement.clientHeight)||(document&&document.body&&document.body.clientHeight)||0;return {width:i,height:j};},getDocumentDimensions:function(i){i=i||document;var j=g.getDocumentScrollElement(i),k=j.scrollWidth||0,l=j.scrollHeight||0;return {width:k,height:l};}};e.exports=h;});
__d("sprintf",[],function(a,b,c,d,e,f){function g(h,i){i=Array.prototype.slice.call(arguments,1);var j=0;return h.replace(/%s/g,function(k){return i[j++];});}e.exports=g;});
__d("Log",["sprintf"],function(a,b,c,d,e,f){var g=b('sprintf'),h={DEBUG:3,INFO:2,WARNING:1,ERROR:0};function i(k,l){var m=Array.prototype.slice.call(arguments,2),n=g.apply(null,m);if(j.level>=k&&window.console)console[l in console?l:'log'](n);}var j={level:-1,Level:h,debug:i.bind(null,h.DEBUG,'debug'),info:i.bind(null,h.INFO,'debug'),warn:i.bind(null,h.WARNING,'debug'),error:i.bind(null,h.ERROR,'debug')};e.exports=j;});
__d("resolveWindow",[],function(a,b,c,d,e,f){function g(h){var i=window,j=h.split('.');try{for(var l=0;l<j.length;l++){var m=j[l],n=/^frames\[['"]?([a-zA-Z0-9\-_]+)['"]?\]$/.exec(m);if(n){i=i.frames[n[1]];}else if(m==='opener'||m==='parent'||m==='top'){i=i[m];}else return null;}}catch(k){return null;}return i;}e.exports=g;});
__d("XD",["function-extensions","Arbiter","DOM","DOMDimensions","Log","URI","UserAgent","copyProperties","resolveWindow"],function(a,b,c,d,e,f){b('function-extensions');var g=b('Arbiter'),h=b('DOM'),i=b('DOMDimensions'),j=b('Log'),k=b('URI'),l=b('UserAgent'),m=b('copyProperties'),n=b('resolveWindow'),o='fb_xdm_frame_'+location.protocol.replace(':',''),p={_callbacks:[],_opts:{autoResize:false,allowShrink:true,channelUrl:null,hideOverflow:false,resizeTimeout:100,resizeWidth:false,expectResizeAck:false,resizeAckTimeout:6000},_lastResizeAckId:0,_resizeCount:0,_resizeTimestamp:0,_shrinker:null,init:function(r){this._opts=m(m({},this._opts),r);if(this._opts.autoResize)this._startResizeMonitor();g.subscribe('Connect.Unsafe.resize.ack',function(s,t){if(!t.id)t.id=this._resizeCount;if(t.id>this._lastResizeAckId)this._lastResizeAckId=t.id;}.bind(this));},send:function(r,s){s=s||this._opts.channelUrl;if(!s)return;if(!(/xd_arbiter\.php/.test(s))){if(s.substr(0,4)!='http')return;var t=s+'&'+k.implodeQuery(r),u='f'+(Math.random()*(1<<30)).toString(16).replace('.',''),v=document.body.appendChild(document.createElement('div')),w=false;v.style.position='absolute';v.style.top='-10000px';v.style.width='1px';v.style.height='1px';p._callbacks[u]=function(){if(w){(function(){v.parentNode.removeChild(v);}).defer(3000);delete p._callbacks[u];}};if(l.ie()){var x,y=document.createElement('div');x='<iframe onload="XD._callbacks.'+u+'()"></iframe>';y.innerHTML=x;y.firstChild.setAttribute('src',t);x=y.innerHTML;v.innerHTML='<iframe src="javascript:false"></iframe>';w=true;(function(){v.innerHTML=x;}).defer();}else{var z=document.createElement('iframe');z.onload=p._callbacks[u];v.appendChild(z);w=true;z.src=t;}return;}var aa={},ba=new k(s);m(aa,r);m(aa,k.explodeQuery(ba.getFragment()));var ca=new k(aa.origin),da=ca.getDomain()+(ca.getPort()?':'+ca.getPort():''),ea=n(aa.relation.replace(/^parent\./,'')),fa=ea.frames[o];fa?fa.proxyMessage(k.implodeQuery(aa),[da]):j.warn('No such frame "'+o+'" to proxyMessage to');},_computeSize:function(){var r=i.getDocumentDimensions(),s=0;if(this._opts.resizeWidth){var t=h.getDocumentBodyElement();if(t.clientWidth<t.scrollWidth){s=r.width;}else{var u=t.childNodes;for(var v=0;v<u.length;v++){var w=u[v],x=w.offsetLeft+w.offsetWidth;if(x>s)s=x;}}s=Math.max(s,p.forced_min_width);}r.width=s;if(this._opts.allowShrink){if(!this._shrinker)this._shrinker=h.create('div');h.appendContent(h.getDocumentBodyElement(),this._shrinker);r.height=this._shrinker.offsetTop;}return r;},_startResizeMonitor:function(){var r,s=document.documentElement;if(this._opts.hideOverflow){s.style.overflow='hidden';document.body.style.overflow='hidden';}setInterval((function(){var t=this._computeSize(),u=Date.now(),v=this._lastResizeAckId<this._resizeCount&&(u-this._resizeTimestamp)>this._opts.resizeAckTimeout;if(!r||(this._opts.expectResizeAck&&v)||(this._opts.allowShrink&&r.width!=t.width)||(!this._opts.allowShrink&&r.width<t.width)||(this._opts.allowShrink&&r.height!=t.height)||(!this._opts.allowShrink&&r.height<t.height)){r=t;this._resizeCount++;this._resizeTimestamp=u;var w={type:'resize',height:t.height,ackData:{id:this._resizeCount}};if(t.width&&t.width!=0)w.width=t.width;try{if(k(document.referrer).isFacebookURI()&&window.parent!=window&&window.name&&window.parent.location&&window.parent.location.toString&&k(window.parent.location).isFacebookURI()){var y=window.parent.document.getElementsByTagName('iframe');for(var z=0;z<y.length;z=z+1)if(y[z].name==window.name){if(this._opts.resizeWidth)y[z].style.width=w.width+'px';y[z].style.height=w.height+'px';}}this.send(w);}catch(x){this.send(w);}}}).bind(this),this._opts.resizeTimeout);}},q=m({},p);e.exports.UnverifiedXD=q;e.exports.XD=p;a.UnverifiedXD=q;a.XD=p;});
__d("legacy:connect-xd",["XD"],function(a,b,c,d){a.UnverifiedXD=b('XD').UnverifiedXD;a.XD=b('XD').XD;},3);
__d("legacy:uri",["URI"],function(a,b,c,d){a.URI=b('URI');},3);
WindowComm={_callbacks:{},makeHandler:function(a,b){b=b||'opener';var c='f'+(Math.random()*(1<<30)).toString(16).replace('.','');WindowComm._callbacks[c]=a;return new URI('/connect/window_comm.php').setQueryData({_id:c,_relation:b}).getQualifiedURI().toString();},_recv:function(a){var b=new URI(a).getQueryData();WindowComm._callbacks[b._id](b);}};
__d("PopupWindow",["DOMDimensions","DOMQuery","UserAgent","copyProperties"],function(a,b,c,d,e,f){var g=b('DOMDimensions'),h=b('DOMQuery'),i=b('UserAgent'),j=b('copyProperties'),k={_opts:{allowShrink:true,strategy:'vector',timeout:100,widthElement:null},init:function(l){j(k._opts,l);setInterval(k._resizeCheck,k._opts.timeout);},_resizeCheck:function(){var l=g.getViewportDimensions(),m=k._getDocumentSize(),n=m.height-l.height,o=m.width-l.width;if(o<0&&!k._opts.widthElement)o=0;if(!k._opts.allowShrink&&n<0)n=0;if(n||o)try{window.console&&window.console.firebug;window.resizeBy(o,n);if(o)window.moveBy(o/-2,0);}catch(p){}},_getDocumentSize:function(){var l=g.getDocumentDimensions();if(k._opts.strategy==='offsetHeight')l.height=document.body.offsetHeight;if(k._opts.widthElement){var m=h.scry(document.body,k._opts.widthElement)[0];if(m)l.width=g.getElementDimensions(m).width;}if(window.Dialog&&Dialog.max_bottom&&Dialog.max_bottom>l.height)l.height=Dialog.max_bottom;return l;},open:function(l,m,n){var o=typeof window.screenX!='undefined'?window.screenX:window.screenLeft,p=typeof window.screenY!='undefined'?window.screenY:window.screenTop,q=typeof window.outerWidth!='undefined'?window.outerWidth:document.body.clientWidth,r=typeof window.outerHeight!='undefined'?window.outerHeight:(document.body.clientHeight-22),s=parseInt(o+((q-n)/2),10),t=parseInt(p+((r-m)/2.5),10),u=('width='+n+',height='+m+',left='+s+',top='+t);return window.open(l,'_blank',u);}};e.exports=k;});
__d("legacy:popup-resizer",["PopupWindow"],function(a,b,c,d){a.PopupResizer=b('PopupWindow');},3);
ConnectLogin={init:function(a){this.appID=a.appID;this.addToProfile=a.addToProfile;this.oneClick=a.oneClick;this.channelUrl=a.channelUrl;XD.init(a);},login:function(a,b,c){if(this.oneClick&&!b){this._oneClick(a);}else this._openPopup(a,b,c);},logout:function(){XD.send({type:'logout'});},_oneClick:function(a){new AsyncRequest().setURI('/ajax/api/tos.php').setData({app_id:this.appID,grant_perm:1}).setHandler(function(b){ConnectLogin._refreshLoginStatus();a&&a();}).send();},_openPopup:function(a,b,c){c=c||{};var d=WindowComm.makeHandler(function(h){ConnectLogin._closePopup();if(ConnectLogin.appID)ConnectLogin._refreshLoginStatus();a&&a();}),e=WindowComm.makeHandler(function(h){ConnectLogin._closePopup();}),f=new URI('/login.php');f.setQueryData({api_key:this.appID,next:d,channel_url:e,cancel_url:e,req_perms:b,v:'1.0',fbconnect:1,add_to_profile:this.addToProfile,display:'popup'});f.addQueryData(c);var g=this._getSize(c);this._popup=PopupResizer.open(f.toString(),g.height,g.width);},_closePopup:function(){if(this._popup){this._popup.close();this._popup=null;}},_refreshLoginStatus:function(){if(this.channelUrl){XD.send({type:'refreshLoginStatus'});}else window.location.reload();},_getSize:function(a){if(a.social_plugin=='registration'){return {width:640,height:370};}else return {width:610,height:280};}};
__d("legacy:cookie",["Cookie"],function(a,b,c,d){var e=b('Cookie');a.getCookie=e.get;a.setCookie=e.set;a.clearCookie=e.clear;},3);
__d("Style",["DOMQuery","$"],function(a,b,c,d,e,f){var g=b('DOMQuery'),h=b('$');function i(l){return l.replace(/([A-Z])/g,'-$1').toLowerCase();}function j(l,m){var n=k.get(l,m);return (n==='auto'||n==='scroll');}var k={set:function(l,m,n){switch(m){case 'opacity':l.style.opacity=n;l.style.filter=n!==''?'alpha(opacity='+n*100+')':'';break;case 'float':l.style.cssFloat=l.style.styleFloat=n;break;default:m=m.replace(/-(.)/g,function(o,p){return p.toUpperCase();});l.style[m]=n;}return l;},get:function(l,m){l=h(l);m=m.replace(/-(.)/g,function(o,p){return p.toUpperCase();});var n;if(window.getComputedStyle){n=window.getComputedStyle(l,null);if(n)return n.getPropertyValue(i(m));}if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(l,null);if(n)return n.getPropertyValue(i(m));if(m=="display")return "none";}if(l.currentStyle)return l.currentStyle[m];return l.style&&l.style[m];},getFloat:function(l,m){return parseFloat(k.get(l,m),10);},getOpacity:function(l){l=h(l);var m=k.get(l,'filter'),n=null;if(m&&(n=/(\d+(?:\.\d+)?)/.exec(m))){return parseFloat(n.pop())/100;}else if(m=k.get(l,'opacity')){return parseFloat(m);}else return 1;},isFixed:function(l){while(l&&l!==document.documentElement){if(k.get(l,'position')==='fixed')return true;l=l.parentNode;}return false;},getScrollParent:function(l){if(!l)return null;while(l!==document.body){if(j(l,'overflow')||j(l,'overflowY')||j(l,'overflowX'))return l;l=l.parentNode;}return window;}};e.exports=k;});
__d("legacy:css",["Style","copyProperties","CSS"],function(a,b,c,d){var e=b('Style'),f=b('copyProperties'),g=b('CSS');f(g,{setStyle:e.set,getStyle:e.get,getStyleFloat:e.getFloat,getOpacity:e.getOpacity,isFixed:e.isFixed,getScrollParent:e.getScrollParent});a.CSS=g;},3);
__d("legacy:dom",["DOM"],function(a,b,c,d){var e=b('DOM');a.DOM=e;a.$N=e.$N;},3);
__d("legacy:dom-core",["$","ge"],function(a,b,c,d){a.$=b('$');a.ge=b('ge');},3);
__d("legacy:dom-html",["HTML"],function(a,b,c,d){a.HTML=b('HTML');},3);
__d("Animation",["CSS","DOM","Style","UserAgent"],function(a,b,c,d,e,f){var g=b('CSS'),h=b('DOM'),i=b('Style'),j=b('UserAgent');function k(l){if(a==this){return new k(l);}else{this.obj=l;this._reset_state();this.queue=[];this.last_attr=null;}}k.resolution=20;k.offset=0;k.prototype._reset_state=function(){this.state={attrs:{},duration:500};};k.prototype.stop=function(){this._reset_state();this.queue=[];return this;};k.prototype._build_container=function(){if(this.container_div){this._refresh_container();return;}if(this.obj.firstChild&&this.obj.firstChild.__animation_refs){this.container_div=this.obj.firstChild;this.container_div.__animation_refs++;this._refresh_container();return;}var l=document.createElement('div');l.style.padding='0px';l.style.margin='0px';l.style.border='0px';l.__animation_refs=1;var m=this.obj.childNodes;while(m.length)l.appendChild(m[0]);this.obj.appendChild(l);this._orig_overflow=this.obj.style.overflow;this.obj.style.overflow='hidden';this.container_div=l;this._refresh_container();};k.prototype._refresh_container=function(){this.container_div.style.height='auto';this.container_div.style.width='auto';this.container_div.style.height=this.container_div.offsetHeight+'px';this.container_div.style.width=this.container_div.offsetWidth+'px';};k.prototype._destroy_container=function(){if(!this.container_div)return;if(!--this.container_div.__animation_refs){var l=this.container_div.childNodes;while(l.length)this.obj.appendChild(l[0]);this.obj.removeChild(this.container_div);}this.container_div=null;this.obj.style.overflow=this._orig_overflow;};k.ATTR_TO=1;k.ATTR_BY=2;k.ATTR_FROM=3;k.prototype._attr=function(l,m,n){l=l.replace(/-[a-z]/gi,function(p){return p.substring(1).toUpperCase();});var o=false;switch(l){case 'background':this._attr('backgroundColor',m,n);return this;case 'margin':m=k.parse_group(m);this._attr('marginBottom',m[0],n);this._attr('marginLeft',m[1],n);this._attr('marginRight',m[2],n);this._attr('marginTop',m[3],n);return this;case 'padding':m=k.parse_group(m);this._attr('paddingBottom',m[0],n);this._attr('paddingLeft',m[1],n);this._attr('paddingRight',m[2],n);this._attr('paddingTop',m[3],n);return this;case 'backgroundColor':case 'borderColor':case 'color':m=k.parse_color(m);break;case 'opacity':m=parseFloat(m,10);break;case 'height':case 'width':if(m=='auto'){o=true;}else m=parseInt(m,10);break;case 'borderWidth':case 'lineHeight':case 'fontSize':case 'marginBottom':case 'marginLeft':case 'marginRight':case 'marginTop':case 'paddingBottom':case 'paddingLeft':case 'paddingRight':case 'paddingTop':case 'bottom':case 'left':case 'right':case 'top':case 'scrollTop':case 'scrollLeft':m=parseInt(m,10);break;default:throw new Error(l+' is not a supported attribute!');}if(this.state.attrs[l]===undefined)this.state.attrs[l]={};if(o)this.state.attrs[l].auto=true;switch(n){case k.ATTR_FROM:this.state.attrs[l].start=m;break;case k.ATTR_BY:this.state.attrs[l].by=true;case k.ATTR_TO:this.state.attrs[l].value=m;break;}};k._get_box_width=function(l){var m=parseInt(i.get(l,'paddingLeft'),10),n=parseInt(i.get(l,'paddingRight'),10),o=parseInt(i.get(l,'borderLeftWidth'),10),p=parseInt(i.get(l,'borderRightWidth'),10);return l.offsetWidth-(m?m:0)-(n?n:0)-(o?o:0)-(p?p:0);};k._get_box_height=function(l){var m=parseInt(i.get(l,'paddingTop'),10),n=parseInt(i.get(l,'paddingBottom'),10),o=parseInt(i.get(l,'borderTopWidth'),10),p=parseInt(i.get(l,'borderBottomWidth'),10);return l.offsetHeight-(m?m:0)-(n?n:0)-(o?o:0)-(p?p:0);};k.prototype.to=function(l,m){if(m===undefined){this._attr(this.last_attr,l,k.ATTR_TO);}else{this._attr(l,m,k.ATTR_TO);this.last_attr=l;}return this;};k.prototype.by=function(l,m){if(m===undefined){this._attr(this.last_attr,l,k.ATTR_BY);}else{this._attr(l,m,k.ATTR_BY);this.last_attr=l;}return this;};k.prototype.from=function(l,m){if(m===undefined){this._attr(this.last_attr,l,k.ATTR_FROM);}else{this._attr(l,m,k.ATTR_FROM);this.last_attr=l;}return this;};k.prototype.duration=function(l){this.state.duration=l?l:0;return this;};k.prototype.checkpoint=function(l,m){if(l===undefined)l=1;this.state.checkpoint=l;this.queue.push(this.state);this._reset_state();this.state.checkpointcb=m;return this;};k.prototype.blind=function(){this.state.blind=true;return this;};k.prototype.hide=function(){this.state.hide=true;return this;};k.prototype.show=function(){this.state.show=true;return this;};k.prototype.ease=function(l){this.state.ease=l;return this;};k.prototype.go=function(){var l=(new Date()).getTime();this.queue.push(this.state);for(var m=0;m<this.queue.length;m++){this.queue[m].start=l-k.offset;if(this.queue[m].checkpoint)l+=this.queue[m].checkpoint*this.queue[m].duration;}k.push(this);return this;};k.prototype._show=function(){g.show(this.obj);};k.prototype._hide=function(){g.hide(this.obj);};k.prototype._frame=function(l){var m=true,n=false,o=false,p;function q(aa){return document.documentElement[aa]||document.body[aa];}for(var r=0;r<this.queue.length;r++){var s=this.queue[r];if(s.start>l){m=false;continue;}if(s.checkpointcb){this._callback(s.checkpointcb,l-s.start);s.checkpointcb=null;}if(s.started===undefined){if(s.show)this._show();for(var t in s.attrs){if(s.attrs[t].start!==undefined)continue;switch(t){case 'backgroundColor':case 'borderColor':case 'color':p=k.parse_color(i.get(this.obj,t=='borderColor'?'borderLeftColor':t));if(s.attrs[t].by){s.attrs[t].value[0]=Math.min(255,Math.max(0,s.attrs[t].value[0]+p[0]));s.attrs[t].value[1]=Math.min(255,Math.max(0,s.attrs[t].value[1]+p[1]));s.attrs[t].value[2]=Math.min(255,Math.max(0,s.attrs[t].value[2]+p[2]));}break;case 'opacity':p=i.getOpacity(this.obj);if(s.attrs[t].by)s.attrs[t].value=Math.min(1,Math.max(0,s.attrs[t].value+p));break;case 'height':p=k._get_box_height(this.obj);if(s.attrs[t].by)s.attrs[t].value+=p;break;case 'width':p=k._get_box_width(this.obj);if(s.attrs[t].by)s.attrs[t].value+=p;break;case 'scrollLeft':case 'scrollTop':p=(this.obj===document.body)?q(t):this.obj[t];if(s.attrs[t].by)s.attrs[t].value+=p;s['last'+t]=p;break;default:p=parseInt(i.get(this.obj,t),10)||0;if(s.attrs[t].by)s.attrs[t].value+=p;break;}s.attrs[t].start=p;}if((s.attrs.height&&s.attrs.height.auto)||(s.attrs.width&&s.attrs.width.auto)){if(j.firefox()<3)o=true;this._destroy_container();for(var t in {height:1,width:1,fontSize:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,borderBottomWidth:1,paddingLeft:1,paddingRight:1,paddingTop:1,paddingBottom:1})if(s.attrs[t])this.obj.style[t]=s.attrs[t].value+(typeof s.attrs[t].value=='number'?'px':'');if(s.attrs.height&&s.attrs.height.auto)s.attrs.height.value=k._get_box_height(this.obj);if(s.attrs.width&&s.attrs.width.auto)s.attrs.width.value=k._get_box_width(this.obj);}s.started=true;if(s.blind)this._build_container();}var u=(l-s.start)/s.duration;if(u>=1){u=1;if(s.hide)this._hide();}else m=false;var v=s.ease?s.ease(u):u;if(!n&&u!=1&&s.blind)n=true;if(o&&this.obj.parentNode){var w=this.obj.parentNode,x=this.obj.nextSibling;w.removeChild(this.obj);}for(var t in s.attrs)switch(t){case 'backgroundColor':case 'borderColor':case 'color':this.obj.style[t]='rgb('+k.calc_tween(v,s.attrs[t].start[0],s.attrs[t].value[0],true)+','+k.calc_tween(v,s.attrs[t].start[1],s.attrs[t].value[1],true)+','+k.calc_tween(v,s.attrs[t].start[2],s.attrs[t].value[2],true)+')';break;case 'opacity':i.set(this.obj,'opacity',k.calc_tween(v,s.attrs[t].start,s.attrs[t].value));break;case 'height':case 'width':this.obj.style[t]=v==1&&s.attrs[t].auto?'auto':k.calc_tween(v,s.attrs[t].start,s.attrs[t].value,true)+'px';break;case 'scrollLeft':case 'scrollTop':var y=this.obj===document.body;p=y?q(t):this.obj[t];if(s['last'+t]!==p){delete s.attrs[t];}else{var z=k.calc_tween(v,s.attrs[t].start,s.attrs[t].value,true);if(!y){z=this.obj[t]=z;}else{if(t=='scrollLeft'){a.scrollTo(z,q('scrollTop'));}else a.scrollTo(q('scrollLeft'),z);z=q(t);}s['last'+t]=z;}break;default:this.obj.style[t]=k.calc_tween(v,s.attrs[t].start,s.attrs[t].value,true)+'px';break;}if(u==1){this.queue.splice(r--,1);this._callback(s.ondone,l-s.start-s.duration);}}if(o)w[x?'insertBefore':'appendChild'](this.obj,x);if(!n&&this.container_div)this._destroy_container();return !m;};k.prototype.ondone=function(l){this.state.ondone=l;return this;};k.prototype._callback=function(l,m){if(l){k.offset=m;l.call(this);k.offset=0;}};k.calc_tween=function(l,m,n,o){return (o?parseInt:parseFloat)((n-m)*l+m,10);};k.parse_color=function(l){var m=/^#([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})$/i.exec(l);if(m){return [parseInt(m[1].length==1?m[1]+m[1]:m[1],16),parseInt(m[2].length==1?m[2]+m[2]:m[2],16),parseInt(m[3].length==1?m[3]+m[3]:m[3],16)];}else{var n=/^rgba? *\(([0-9]+), *([0-9]+), *([0-9]+)(?:, *([0-9]+))?\)$/.exec(l);if(n){if(n[4]==='0'){return [255,255,255];}else return [parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)];}else if(l=='transparent'){return [255,255,255];}else throw 'Named color attributes are not supported.';}};k.parse_group=function(l){l=l.trim().split(/ +/);if(l.length==4){return l;}else if(l.length==3){return [l[0],l[1],l[2],l[1]];}else if(l.length==2){return [l[0],l[1],l[0],l[1]];}else return [l[0],l[0],l[0],l[0]];};k.push=function(l){if(!k.active)k.active=[];k.active.push(l);if(k.active.length===1){if(!k.requestAnimationFrame){var m=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame;if(m)k.requestAnimationFrame=m.bind(a);}if(k.requestAnimationFrame){k.requestAnimationFrame(k._animate);}else k.timeout=setInterval(k._animate,k.resolution,false);}if(k.requestAnimationFrame)k._updateEndingTimer();k._animate(Date.now(),true);};k._updateEndingTimer=function(){if(!k.requestAnimationFrame)throw new Error('Ending timer only valid with requestAnimationFrame');var l=0;for(var m=0;m<k.active.length;m++){var n=k.active[m];for(var o=0;o<n.queue.length;o++){var p=n.queue[o].start+n.queue[o].duration;if(p>l)l=p;}}if(k.timeout){clearTimeout(k.timeout);delete k.timeout;}var q=Date.now();if(l>q)k.timeout=setTimeout(k._animate.shield(),l-q,false);};k._animate=function(l,m){l=l||Date.now();for(var n=(m===true)?k.active.length-1:0;n<k.active.length;n++)try{if(!k.active[n]._frame(l))k.active.splice(n--,1);}catch(o){k.active.splice(n--,1);}if(k.active.length===0){if(k.timeout){if(k.requestAnimationFrame){clearTimeout(k.timeout);}else clearInterval(k.timeout);delete k.timeout;}}else if(k.requestAnimationFrame)k.requestAnimationFrame(k._animate);};k.ease={};k.ease.begin=function(l){return Math.sin(Math.PI/2*(l-1))+1;};k.ease.end=function(l){return Math.sin(.5*Math.PI*l);};k.ease.both=function(l){return .5*Math.sin(Math.PI*(l-.5))+.5;};k.prependInsert=function(l,m){k.insert(l,m,h.prependContent);};k.appendInsert=function(l,m){k.insert(l,m,h.appendContent);};k.insert=function(l,m,n){i.set(m,'opacity',0);n(l,m);new k(m).from('opacity',0).to('opacity',1).duration(400).go();};e.exports=k;});
__d("legacy:animation",["Animation"],function(a,b,c,d){a.animation=b('Animation');},3);
__d("Button",["event-extensions","CSS","DataStore","DOM","Parent"],function(a,b,c,d,e,f){b('event-extensions');var g=b('CSS'),h=b('DataStore'),i=b('DOM'),j=b('Parent'),k=(function(){var l='uiButtonDisabled',m='uiButtonDepressed',n='button:blocker',o='href';function p(s,t){var u=h.get(s,n);if(t){if(u){u.remove();h.remove(s,n);}}else if(!u)h.set(s,n,Event.listen(s,'click',bagof(false),Event.Priority.URGENT));}function q(s){var t=j.byClass(s,'uiButton');if(!t)throw new Error('invalid use case');return t;}function r(s){return i.isNodeOfType(s,'a');}return {getInputElement:function(s){s=q(s);if(r(s))throw new Error('invalid use case');return i.find(s,'input');},isEnabled:function(s){return !g.hasClass(q(s),l);},setEnabled:function(s,t){s=q(s);g.conditionClass(s,l,!t);if(r(s)){var u=s.href,v=h.get(s,o,'#');if(t){if(!u)s.href=v;}else{if(u&&u!==v)h.set(s,o,u);s.removeAttribute('href');}p(s,t);}else{var w=k.getInputElement(s);w.disabled=!t;p(w,t);}},setDepressed:function(s,t){g.conditionClass(q(s),m,t);},isDepressed:function(s){return g.hasClass(q(s),m);},setLabel:function(s,t){s=q(s);if(r(s)){var u=i.find(s,'span.uiButtonText');i.setContent(u,t);}else k.getInputElement(s).value=t;g.conditionClass(s,'uiButtonNoText',!t);},setIcon:function(s,t){if(!i.isNode(t))return;g.addClass(t,'customimg');s=q(s);var u=i.scry(s,'.img')[0];if(u!=t)if(u){i.replace(u,t);}else i.prependContent(s,t);}};})();a.Button=e.exports=k;},3);
__d("legacy:env",["Env"],function(a,b,c,d){var e=b('Env');a.Env=e;},3);
__d("legacy:event-extensions",["event-extensions"],function(a,b,c,d){b('event-extensions');},3);
__d("Locale",["Style"],function(a,b,c,d,e,f){var g=b('Style'),h,i={isRTL:function(){if(h===undefined)h=('rtl'===g.get(document.body,'direction'));return h;}};e.exports=i;});
__d("legacy:intl-locale",["Locale"],function(a,b,c,d){a.intl_locale_is_rtl=b('Locale').isRTL;},3);
__d("PlaceholderListener",["Arbiter","CSS","Parent"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('CSS'),i=b('Parent'),j=document.documentElement,k=function(l){l=l||window.event;var m=l.target||l.srcElement,n=m.getAttribute('placeholder');if(n){var o=i.byClass(m,'focus_target');if('focus'==l.type||'focusin'==l.type){var p=m.value.replace(/\r\n/g,'\n'),q=n.replace(/\r\n/g,'\n');if(p==q&&h.hasClass(m,'DOMControl_placeholder')){m.value='';h.removeClass(m,'DOMControl_placeholder');}if(o){h.addClass(o,'child_is_active');h.addClass(o,'child_is_focused');h.addClass(o,'child_was_focused');g.inform('reflow');}}else{if(m.value===''){h.addClass(m,'DOMControl_placeholder');m.value=n;o&&h.removeClass(o,'child_is_active');m.style.direction='';}o&&h.removeClass(o,'child_is_focused');}}};if(j.addEventListener){j.addEventListener('focus',k,true);j.addEventListener('blur',k,true);}else{j.attachEvent('onfocusin',k);j.attachEvent('onfocusout',k);}});
__d("legacy:placeholder-form-listener",["PlaceholderListener"],function(a,b,c,d){b('PlaceholderListener');},3);
__d("DOMControl",["DataStore","$","copyProperties"],function(a,b,c,d,e,f){var g=b('DataStore'),h=b('$'),i=b('copyProperties');function j(k){this.root=h(k);this.updating=false;g.set(k,'DOMControl',this);}i(j.prototype,{getRoot:function(){return this.root;},beginUpdate:function(){if(this.updating)return false;this.updating=true;return true;},endUpdate:function(){this.updating=false;},update:function(k){if(!this.beginUpdate())return this;this.onupdate(k);this.endUpdate();},onupdate:function(k){}});j.getInstance=function(k){return g.get(k,'DOMControl');};e.exports=j;});
__d("Input",["CSS","DOMQuery","DOMControl"],function(a,b,c,d,e,f){var g=b('CSS'),h=b('DOMQuery'),i=b('DOMControl'),j=function(l){var m=l.getAttribute('maxlength');if(m&&m>0)d(['enforceMaxLength'],function(n){n(l,m);});},k={focus:function(l){try{l.focus();}catch(m){}},isEmpty:function(l){return !(/\S/).test(l.value||'')||g.hasClass(l,'DOMControl_placeholder');},getValue:function(l){return k.isEmpty(l)?'':l.value;},setValue:function(l,m){g.removeClass(l,'DOMControl_placeholder');l.value=m||'';j(l);var n=i.getInstance(l);n&&n.resetHeight&&n.resetHeight();},setPlaceholder:function(l,m){l.setAttribute('title',m);l.setAttribute('placeholder',m);if(l==document.activeElement)return;if(k.isEmpty(l)){g.conditionClass(l,'DOMControl_placeholder',m);l.value=m||'';}},reset:function(l){var m=l!==document.activeElement?(l.getAttribute('placeholder')||''):'';l.value=m;g.conditionClass(l,'DOMControl_placeholder',m);l.style.height='';},setSubmitOnEnter:function(l,m){g.conditionClass(l,'enter_submit',m);},getSubmitOnEnter:function(l){return g.hasClass(l,'enter_submit');},setMaxLength:function(l,m){if(m>0){l.setAttribute('maxlength',m);j(l);}else l.removeAttribute('maxlength');}};e.exports=k;});
__d("PlaceholderOnsubmitFormListener",["event-extensions","Input"],function(a,b,c,d,e,f){b('event-extensions');var g=b('Input');Event.listen(document.documentElement,'submit',function(h){var i=h.getTarget().getElementsByTagName('*');for(var j=0;j<i.length;j++)if(i[j].getAttribute('placeholder')&&g.isEmpty(i[j]))g.setValue(i[j],'');});});
__d("legacy:placeholder-onsubmit-form-listener",["PlaceholderOnsubmitFormListener"],function(a,b,c,d){b('PlaceholderOnsubmitFormListener');},3);
__d("legacy:object-core-utils",["isEmpty","copyProperties"],function(a,b,c,d){a.is_empty=b('isEmpty');a.copy_properties=b('copyProperties');function e(f,g){return copy_properties(window[f]||(window[f]={}),g);}a.add_properties=e;},3);
var PlatformOptInPopup=function(){};copy_properties(PlatformOptInPopup,{DIALOG_URL:'/connect/uiserver.php',DIALOG_WIDTH:420,DIALOG_HEIGHT:450,APP_ID:127760087237610,open:function(a,b,c){if(!a)a='generic';if(!b)b='opt.in';var d=new URI(PlatformOptInPopup.DIALOG_URL);d.addQueryData({social_plugin:a,method:b,display:'popup',secure:URI.getRequestURI().isSecure(),app_id:PlatformOptInPopup.APP_ID});if(c)d.addQueryData(c);return PopupResizer.open(d.toString(),PlatformOptInPopup.DIALOG_WIDTH,PlatformOptInPopup.DIALOG_HEIGHT);}});
__d("legacy:ua",["UserAgent"],function(a,b,c,d){a.ua=b('UserAgent');},3);
__d("DOMPosition",["DOMQuery"],function(a,b,c,d,e,f){var g=b('DOMQuery'),h={getScrollPosition:function(){var i=g.getDocumentScrollElement();return {x:i.scrollLeft,y:i.scrollTop};},getElementPosition:function(i){if(!i)return;if(!('getBoundingClientRect' in i))return {x:0,y:0};var j=i.getBoundingClientRect(),k=document.documentElement,l=Math.round(j.left)-k.clientLeft,m=Math.round(j.top)-k.clientTop;return {x:l,y:m};}};e.exports=h;});
__d("Vector",["event-extensions","DOMDimensions","DOMPosition","DOMQuery","copyProperties"],function(a,b,c,d,e,f){b('event-extensions');var g=b('DOMDimensions'),h=b('DOMPosition'),i=b('DOMQuery'),j=b('copyProperties');function k(l,m,n){j(this,{x:parseFloat(l),y:parseFloat(m),domain:n||'pure'});}j(k.prototype,{toString:function(){return '('+this.x+', '+this.y+')';},add:function(l,m){if(arguments.length==1){if(l.domain!='pure')l=l.convertTo(this.domain);return this.add(l.x,l.y);}var n=parseFloat(l),o=parseFloat(m);return new k(this.x+n,this.y+o,this.domain);},mul:function(l,m){if(typeof m=="undefined")m=l;return new k(this.x*l,this.y*m,this.domain);},sub:function(l,m){if(arguments.length==1){return this.add(l.mul(-1));}else return this.add(-l,-m);},distanceTo:function(l){return this.sub(l).magnitude();},magnitude:function(){return Math.sqrt((this.x*this.x)+(this.y*this.y));},convertTo:function(l){if(l!='pure'&&l!='viewport'&&l!='document')return new k(0,0);if(l==this.domain)return new k(this.x,this.y,this.domain);if(l=='pure')return new k(this.x,this.y);if(this.domain=='pure')return new k(0,0);var m=k.getScrollPosition('document'),n=this.x,o=this.y;if(this.domain=='document'){n-=m.x;o-=m.y;}else{n+=m.x;o+=m.y;}return new k(n,o,l);},setElementPosition:function(l){var m=this.convertTo('document');l.style.left=parseInt(m.x)+'px';l.style.top=parseInt(m.y)+'px';return this;},setElementDimensions:function(l){return this.setElementWidth(l).setElementHeight(l);},setElementWidth:function(l){l.style.width=parseInt(this.x,10)+'px';return this;},setElementHeight:function(l){l.style.height=parseInt(this.y,10)+'px';return this;},scrollElementBy:function(l){if(l==document.body){window.scrollBy(this.x,this.y);}else{l.scrollLeft+=this.x;l.scrollTop+=this.y;}return this;}});j(k,{getEventPosition:function(l,m){m=m||'document';var n=Event.getPosition(l),o=new k(n.x,n.y,'document');return o.convertTo(m);},getScrollPosition:function(l){l=l||'document';var m=h.getScrollPosition();return new k(m.x,m.y,'document').convertTo(l);},getElementPosition:function(l,m){m=m||'document';var n;if(l!==i.getDocumentBodyElement()||l===document.body){n=h.getElementPosition(l);}else n={x:-l.scrollLeft,y:-l.scrollTop};return new k(n.x,n.y,'viewport').convertTo(m);},getElementDimensions:function(l){var m=g.getElementDimensions(l);return new k(m.width,m.height);},getViewportDimensions:function(){var l=g.getViewportDimensions();return new k(l.width,l.height,'viewport');},getDocumentDimensions:function(l){var m=g.getDocumentDimensions(l);return new k(m.width,m.height,'document');},deserialize:function(l){var m=l.split(',');return new k(m[0],m[1]);}});e.exports=k;});
__d("legacy:vector",["Vector"],function(a,b,c,d){a.Vector2=b('Vector');},3);
__d("array-extensions",[],function(a,b,c,d,e,f){Array.prototype.contains=function(g){return this.indexOf(g)!=-1;};Array.prototype.remove=function(g){var h=this.indexOf(g);if(h!=-1)this.splice(h,1);};},3);
__d("legacy:array-utils",["createArrayFrom","hasArrayNature"],function(a,b,c,d){a.$A=b('createArrayFrom');a.hasArrayNature=b('hasArrayNature');},3);
WidgetArbiter={_findSiblings:function(){if(WidgetArbiter._siblings)return;WidgetArbiter._siblings=[];for(var a=parent.frames.length-1;a>=0;a--)try{if(parent.frames[a]&&parent.frames[a].Arbiter&&parent.frames[a].Arbiter.inform)WidgetArbiter._siblings.push(parent.frames[a].Arbiter);}catch(b){}},inform:function(){WidgetArbiter._findSiblings();var a=$A(arguments);WidgetArbiter._siblings.forEach(function(b){b.inform.apply(b,a);});}};
var ExternalNodeConnectWidget=function(a){copy_properties(this,{widgetID:a.widgetID,widget:$(a.widgetID),viewerID:a.viewer,nodeType:a.nodeType,viewerIsAdmin:a.viewerIsAdmin&&!a.userOptedOut,adminUrl:a.adminUrl,popupOptInParams:{},nodeUri:new URI(a.nodeURL),externalUrl:a.externalURL,pageId:a.pageId,domainId:a.domainId,layout:a.layout,edgeType:a.edgeType,error:a.error,errorURI:new URI('/'),alreadyConnected:a.alreadyConnected,usingConnectLibrary:!!a.channelURL,commentWidgetMarkup:a.commentWidgetMarkup,commentWidgetOpen:false,commentWidgetVisible:false,userProfile:null,connectStoryFbid:0,isAmbiguousText:a.isAmbiguousText,socialBar:a.socialbar,useDisconnectLink:a.useDisconnectLink,showError:a.showError,showConfirm:a.showConfirm,showFaces:a.showFaces,connectText:a.connectText,ref:a.ref,userOptedOut:a.userOptedOut,usingInlineCommenting:a.usingInlineCommenting,mobile:a.mobile,supportCommenting:!a.mobile&&(!!a.channelURL||a.usingInlineCommenting),inlineCommentListenersInitialized:false,inlineCommentFocused:false,forceCommentHooks:a.forceCommentHooks,nux:a.nux,iframeReferer:a.iframeReferer,isBlocked:a.isBlocked,isPersonalized:a.isPersonalized,confirmedConnect:a.confirmedConnect,hasSend:a.send,colorScheme:a.colorScheme,grayOut:a.grayOut});if(this.usingConnectLibrary)UnverifiedXD.init({autoResize:a.autoResize,channelUrl:a.channelURL,resizeWidth:a.autoResize&&a.layout!==ExternalNodeConnectWidget.STANDARD_LAYOUT});this.connectButtonSlider=DOM.scry(this.widget,'div.connect_button_slider');this.connectButtonContainer=null;if(this.connectButtonSlider.length){this.connectButtonSlider=this.connectButtonSlider[0];this.connectButtonContainer=DOM.find(this.connectButtonSlider,'div.connect_button_container');}else this.connectButtonSlider=null;this.connectButton=DOM.find(this.widget,'a.connect_widget_like_button');if(this.grayOut)this.tombstoneCross=DOM.find(this.widget,'div.tombstone_cross');this.connectedMessage=DOM.scry(this.widget,'span.connect_widget_connected_text');this.connectedMessage=this.connectedMessage.length?this.connectedMessage[0]:null;this.notConnectedMessage=DOM.scry(this.widget,'span.connect_widget_not_connected_text');this.notConnectedMessage=this.notConnectedMessage.length?this.notConnectedMessage[0]:null;this.adminSpans=DOM.scry(this.widget,'span.connect_widget_admin_span');if(this.adminSpans.length>0){this.adminLinks=[];for(var b=0;b<this.adminSpans.length;b++)this.adminLinks[b]=DOM.find(this.adminSpans[b],'a.connect_widget_admin_option');}if(this.layout==ExternalNodeConnectWidget.STANDARD_LAYOUT){this.confirmationCell=DOM.find(this.widget,'div.connect_confirmation_cell');this.userActionTextSpan=DOM.find(this.confirmationCell,'span.connect_widget_user_action');this.summaryTextSpan=DOM.find(this.confirmationCell,'span.connect_widget_summary');this.summaryText=DOM.find(this.confirmationCell,'div.connect_widget_text_summary');var c=DOM.scry(this.widget,'div.connect_widget_sample_connections');this.sampleConnections=c.length>0?c[0]:null;if(a.showFaces&&a.viewer>0){var d=DOM.scry(this.widget,'div.connect_widget_logged_in_user');this.loggedInUserPhotoDiv=d.length>0?d[0]:null;}}if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){this.originalButtonWidth=this.computeButtonDimensions().width;this.summaryIncluding=DOM.find(this.widget,'td.connect_widget_simple_including');this.supportCommenting=false;this.usingInlineCommenting=false;}this.setQueryData();if(this.pageId)copy_properties(this.popupOptInParams,{connect_id:this.pageId});this.errorSpans=DOM.scry(this.widget,'span.connect_widget_error_span');if(this.errorSpans.length>0){this.errorLinks=[];for(var e=0;e<this.errorSpans.length;e++)this.errorLinks[e]=DOM.find(this.errorSpans[e],'a.connect_widget_error_text');}this.confirmSpans=DOM.scry(this.widget,'span.connect_widget_confirm_span');if(this.confirmSpans.length>0){this.confirmLinks=[];for(var f=0;f<this.confirmSpans.length;f++)this.confirmLinks[f]=DOM.find(this.confirmSpans[f],'a.connect_widget_confirm_link');}this.unlikeSpans=DOM.scry(this.widget,'span.unlike_span');this.unlikeLinks=[];for(var g=0;g<this.unlikeSpans.length;g++){this.unlikeLinks[g]=DOM.find(this.unlikeSpans[g],'a.connect_widget_unlike_link');Event.listen(this.unlikeLinks[g],'click',this.connectToNodeOnClick.bind(this));}var h=DOM.scry(this.widget,'div.connect_widget_number_cloud');if(h.length==1){this.numberCloud=h[0];this.numberCloudNub=DOM.find(this.widget,'div.connect_widget_number_cloud_nub');this.numberCloudExtension=DOM.find(this.numberCloud,'div.connect_widget_number_cloud_extension');this.sizeNumberCloud();this.numberCloudUnlikeSpan=DOM.find(this.numberCloudExtension,'span.unlike_span');this.numberCloudReminderSpan=DOM.find(this.numberCloudExtension,'span.like_reminder');this.inAnimation=false;this.reminderIsVisible=CSS.hasClass(this.numberCloudUnlikeSpan,'hidden_elem');Event.listen(this.numberCloud,'mouseleave',this.restoreReminderSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseleave',this.restoreReminderSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseenter',this.exposeUnlikeSpan.bind(this));Event.listen(this.numberCloud,'mouseenter',this.exposeUnlikeSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseleave',function(event){this.requiresMouseLeaveEvent=false;}.bind(this));}if(this.usingInlineCommenting&&!this.showFaces){this.shareCommentSpans=DOM.scry(this.widget,'span.connect_widget_share_comment_span');for(var i=0;i<this.shareCommentSpans.length;i++){var j=DOM.find(this.shareCommentSpans[i],'a.connect_widget_share_comment_option');Event.listen(j,'click',function(event){Event.kill(event);for(var l=0;l<this.shareCommentSpans.length;l++)CSS.addClass(this.shareCommentSpans[l],'hidden_elem');this.presentCommentingOption();}.bind(this));}}if(this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){XD.forced_min_width=this.getButtonCountWidgetWidth();this.numberExcluding=DOM.find(this.widget,'td.connect_widget_button_count_excluding');this.summaryIncluding=DOM.find(this.widget,'td.connect_widget_button_count_including');this.thumbsUpIcon=DOM.find(this.summaryIncluding,'div.thumbs_up');this.undoRegion=DOM.find(this.summaryIncluding,'div.undo');this.originalButtonWidth=this.computeButtonDimensions().width;Event.listen(this.thumbsUpIcon,'mouseenter',function(event){this.undoButton=DOM.find(this.undoRegion,'label.undo_button input');Event.listen(this.undoButton,'click',this.connectToNodeOnClick.bind(this));CSS.addClass(this.thumbsUpIcon,'hidden_elem');CSS.removeClass(this.undoRegion,'hidden_elem');}.bind(this));Event.listen(this.undoRegion,'mouseleave',function(event){CSS.removeClass(this.thumbsUpIcon,'hidden_elem');CSS.addClass(this.undoRegion,'hidden_elem');}.bind(this));}if(!this.isBlocked){Event.listen(this.connectButton,'click',this.primaryLikeButtonOnClick.bind(this));if(this.grayOut)Event.listen(this.tombstoneCross,'click',this.connectToNodeOnClick.bind(this));}if(this.adminLinks)for(var b=0;b<this.adminLinks.length;b++)Event.listen(this.adminLinks[b],'click',this.presentAdminPage.bind(this));if(this.errorLinks)for(var b=0;b<this.errorLinks.length;b++)Event.listen(this.errorLinks[b],'click',this.presentErrorDialog.bind(this));if(this.confirmLinks)for(var k=0;k<this.confirmLinks.length;k++)Event.listen(this.confirmLinks[k],'click',this.presentConfirmDialog.bind(this));if(a.showCaptcha){this.showCaptcha=true;this.connectToNode(true);}if(this.forceCommentHooks)this.setupCommentHooks($(this.forceCommentHooks));this.textInputMarginWithButton=5;this.widthSyncArbiter=Arbiter.subscribe('platform/socialplugins/send/resize',this.syncSendWidgetWidth.bind(this));Arbiter.inform('platform/socialplugins/like/resize',{button_width:this.computeButtonDimensionsWithPadding().width,widget_width:Vector2.getElementDimensions(this.widget).x,layout:this.layout},Arbiter.BEHAVIOR_STATE);Arbiter.subscribe('platform/socialplugins/dialog',function(l,m){if(m.controllerID!==this.widgetID)this.otherCommentWidgetOpen=(m.event=='open');}.bind(this));Arbiter.subscribe('platform/socialplugins/dialog',function(l,m){if(m.controllerID!==this.divID&&m.event=='open')this.closeCommentWidget();}.bind(this));this.subscribeToSync(a);};copy_properties(ExternalNodeConnectWidget,{STANDARD_LAYOUT:'standard',BOX_COUNT_LAYOUT:'box_count',BUTTON_COUNT_LAYOUT:'button_count',SIMPLE_LAYOUT:'simple',COLOR_DARK:0,COLOR_LIGHT:1,OPT_IN_FACEBOOK_APP_ID:'127760087237610',updateLoggedInUser:function(a){var b=ExternalNodeConnectWidget.controllerManagingLogin;b.setLoggedIn(a);b.connectToNode(true);b.userOptedOut=false;delete ExternalNodeConnectWidget.controllerManagingLogin;Arbiter.inform('platform/socialplugins/login',{user:a.user},Arbiter.BEHAVIOR_STATE);WidgetArbiter.inform('platform/socialplugins/login',{user:a.user},Arbiter.BEHAVIOR_STATE);},onCommentWidgetLoaded:function(a,b){var c=ExternalNodeConnectWidget.self;delete ExternalNodeConnectWidget.self;c.injectCommentWidgetMarkup(a);setTimeout(function(){c.positionNub(b);},1000);}});copy_properties(ExternalNodeConnectWidget.prototype,{getSyncEndpointName:function(){},getConnectionEndpointName:function(){},getPluginName:function(){},subscribeToSync:function(a){Arbiter.subscribe('platform/socialplugins/login',function(b,c){if(this.viewerID&&c.user!==this.viewerID)document.location.reload();}.bind(this));Arbiter.subscribe(this.getSyncEndpointName(),function(b,c){if(c.externalUrl==a.externalURL){this.userOptedOut=false;this.updateWidget(c.opts,true);}}.bind(this));},setQueryData:function(){copy_properties(this.popupOptInParams,{protocol:window.location.protocol,external_page_url:this.externalUrl});if(this.nux)copy_properties(this.popupOptInParams,{nux:this.nux,referer:this.iframeReferer});},updateWidget:function(a,b,c){var d=(this.alreadyConnected!=a.nowConnected)||(this.showConfirm!=a.showConfirm);if(!b)Arbiter.inform(this.getConnectionEndpointName(),a,Arbiter.BEHAVIOR_STATE);this.alreadyConnected=a.nowConnected;this.viewerIsAdmin=a.isAdmin;this.showError=a.showError;this.showConfirm=a.showConfirm;this.adminUrl=a.adminUrl;this.userProfile=a.userProfile;this.connectStoryFbid=a.connectStoryFbid;this.error=a.error;if(!a.nowConnected)this.closeCommentWidget();if(d&&!b||c){var e=a.nowConnected?'edgeCreated':'edgeRemoved';UnverifiedXD.send({type:e});}if(d||this.error)this.syncWidgetDisplay();if(!b||c)WidgetArbiter.inform(this.getSyncEndpointName(),{externalUrl:this.externalUrl,opts:a},Arbiter.BEHAVIOR_STATE);},presentOptIn:function(){ExternalNodeConnectWidget.controllerManagingLogin=this;PlatformOptInPopup.open(this.getPluginName(),'opt.inlike',this.popupOptInParams);UnverifiedXD.send({type:'authPrompted'});},setLoggedIn:function(a){this.viewerID=a.user;this.newProfilePic=a.profilePic;this.placeDtsg(a.fbDtsg);},placeDtsg:function(a){Env.fb_dtsg=a;},syncWidgetWithServer:function(a){var b=a.getPayload();if(b.requires_login){this.updateWidget({nowConnected:false,isAdmin:false},false);this.presentOptIn();return;}var c={nowConnected:b.success&&b.already_connected,isAdmin:b.is_admin,showError:b.show_error,showConfirm:b.show_confirm,adminUrl:b.admin_url,userProfile:b.user_profile,connectStoryFbid:b.story_fbid,error:b.error_info};this.updateWidget(c,!b.success,b.success);if(b.success&&this.showCaptcha){window.opener.location.reload();window.close();}},getButtonCountWidgetWidth:function(){var a=DOM.find(this.widget,'table.connect_widget_interactive_area'),b=CSS.getStyle(a,'width');return parseInt(b,10);},sizeNumberCloud:function(){this.collapsedNumberCloudHeight=this.getCollapsedNumberCloudHeight();this.expandedNumberCloudHeight=this.collapsedNumberCloudHeight+this.getNumberCloudExtensionHeight();if(this.alreadyConnected)CSS.setStyle(this.numberCloud,'height',this.expandedNumberCloudHeight+'px');var a=this.computeButtonDimensionsWithPadding().width;XD.forced_min_width=a;var b=intl_locale_is_rtl();a-=2;CSS.setStyle(this.numberCloud,'width',a+'px');CSS.setStyle(this.numberCloud,'visibility','visible');animation(this.numberCloud).from('opacity',0).to('opacity',1).duration(100).go();},getCollapsedNumberCloudHeight:function(){var a=Vector2.getElementDimensions(this.numberCloud).y,b=parseInt(CSS.getStyle(this.numberCloud,'paddingTop'),10),c=parseInt(CSS.getStyle(this.numberCloud,'paddingBottom'),10),d=parseInt(CSS.getStyle(this.numberCloud,'border'),10);return a-b-c-2;},getNumberCloudExtensionHeight:function(){CSS.addClass(this.numberCloudExtension,'connect_widget_offscreen');if(!this.alreadyConnected)CSS.removeClass(this.numberCloudExtension,'hidden_elem');var a=Vector2.getElementDimensions(this.numberCloudExtension).y;if(!this.alreadyConnected)CSS.addClass(this.numberCloudExtension,'hidden_elem');CSS.removeClass(this.numberCloudExtension,'connect_widget_offscreen');return a;},restoreReminderSpan:function(event){if(this.reminderIsVisible||this.inAnimation)return;this.animateReminderSpanReappearance();},animateReminderSpanReappearance:function(){if(this.reminderIsVisible||this.inAnimation)return;this.inAnimation=true;CSS.addClass(this.numberCloudUnlikeSpan,'hidden_elem');CSS.setStyle(this.numberCloudReminderSpan,'opacity',0);CSS.removeClass(this.numberCloudReminderSpan,'hidden_elem');animation(this.numberCloudReminderSpan).to('opacity',1).duration(100).ondone(function(){this.inAnimation=false;this.reminderIsVisible=true;}.bind(this)).go();},exposeUnlikeSpan:function(event){if(!this.alreadyConnected||this.requiresMouseLeaveEvent||!this.reminderIsVisible||this.inAnimation)return;this.inAnimation=true;CSS.addClass(this.numberCloudReminderSpan,'hidden_elem');CSS.setStyle(this.numberCloudUnlikeSpan,'opacity',0);CSS.removeClass(this.numberCloudUnlikeSpan,'hidden_elem');animation(this.numberCloudUnlikeSpan).to('opacity',1).duration(100).ondone(function(){this.inAnimation=false;this.reminderIsVisible=false;}.bind(this)).go();},conditionallyActivateButton:function(event){this.commentButtonIsActive=this.inlineCommentInput.value.trim().length>0;},updateConnectionWithComment:function(event){Event.kill(event);if(this.commentButtonIsActive){this.postInlineComment();this.resetInlineComment();this.closeInlineComment();}},postInlineComment:function(){this.postUserComment(this.inlineCommentInput.value.trim(),false,'iframe');},resetInlineComment:function(){this.concealCommentButton();this.inlineCommentInput.value='';},showInlineComment:function(event){Event.kill(event);if(!this.inlineCommentFlyoutOpen||this.inlineCommentFlyoutVisible||this.showConfirm||this.error)return;this.inlineCommentFlyoutVisible=true;CSS.show(this.inlineCommentFlyout);},hideInlineComment:function(event){if(event)Event.kill(event);if(this.inlineCommentFocused||!this.inlineCommentFlyoutOpen||!this.inlineCommentFlyoutVisible)return;if(event&&DOM.contains(this.inlineCommentFlyout,event.getRelatedTarget()))return;var a=this.inlineCommentInput.value.trim(),b=this.inlineCommentInput.getAttribute('placeholder');if(a.length>0&&a!=b)return;this.inlineCommentFlyoutVisible=false;CSS.hide(this.inlineCommentFlyout);},closeInlineComment:function(){this.inlineCommentFlyoutVisible=false;this.inlineCommentFlyoutOpen=false;CSS.hide(this.inlineCommentFlyout);this.resetInlineComment();},concealCommentButton:function(){CSS.addClass(this.inlineCommentButton,'hidden_elem');CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithoutButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',0);},positionInlineCommentFlyout:function(){CSS.addClass(this.inlineCommentFlyout,'comment_widget_offscreen');CSS.removeClass(this.inlineCommentFlyout,'hidden_elem');var a=0,b=this.computeButtonDimensions(),c=b.height,d=this.grayOut?a:a+20,e=intl_locale_is_rtl()?'right':'left';if(this.showFaces){var f=DOM.scry(this.widget,'span.connect_widget_text')[0],g=intl_locale_is_rtl()?'paddingRight':'paddingLeft',h=CSS.getStyle(f,g);d=this.grayOut?a:a+parseInt(h,10);var i=Vector2.getElementDimensions(this.sampleConnections).y;c=i-3;}var j=Vector2.getElementDimensions(this.summaryText).y;if(j>15)c+=2;CSS.setStyle(this.inlineCommentFlyout,e,d+'px');CSS.setStyle(this.inlineCommentFlyout,'top',(-c)+'px');var k=Vector2.getElementPosition(this.widget,'document').x,l=Vector2.getElementDimensions(this.widget).x,m=k+l-d-5;CSS.setStyle(this.inlineCommentFlyout,'width',m+'px');CSS.removeClass(this.inlineCommentButton,'hidden_elem');var n=Vector2.getElementDimensions(this.inlineCommentButton).x;CSS.addClass(this.inlineCommentButton,'hidden_elem');var o=(this.inlineCommentClose)?15:0;this.textInputWidthWithoutButton=m-24-o;this.textInputWidthWithButton=this.textInputWidthWithoutButton-n-this.textInputMarginWithButton-1;CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithoutButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',0);CSS.removeClass(this.inlineCommentFlyout,'comment_widget_offscreen');CSS.addClass(this.inlineCommentFlyout,'hidden_elem');},postUserComment:function(a,b,c){var d={href:this.externalUrl,node_type:this.nodeType,edge_type:this.edgeType,page_id:this.pageId,connect_text:this.connectText,story_fbid:this.connectStoryFbid,comment:a,widget_type:c||'xfbml',own_product:b};new AsyncRequest().setURI(this.getCommentAjaxEndpoint()).setData(d).setNectarModuleDataSafe().setNectarImpressionIdSafe().send();this.closeCommentWidget();},closeCommentWidget:function(){if(this.commentWidgetOpen){delete this.inGracePeriod;delete this.commentWidgetIsExpanded;this.commentWidgetVisible=false;this.commentWidgetOpen=false;UnverifiedXD.send({type:'dismissEdgeCommentDialog'});}},presentAdminPage:function(event){Event.kill(event);var a='_blank';window.open(this.adminUrl.toString(),a);},presentErrorDialog:function(event){Event.kill(event);if(!this.error.errorUri)return;var a='_blank',b='toolbar=0, status=0, width=960, height=300';window.open(this.error.errorUri.toString(),a,b);},presentConfirmDialog:function(event){Event.kill(event);var a='_blank',b='toolbar=0,status=0,width=450,height=200,scrollbars=0,location=0,menubar=0';if(!window.confirmDialogReturn)window.confirmDialogReturn={};window.confirmDialogReturn[this.widgetID]=this;var c=this.getConfirmURL();window.open(c,a,b);},returnFromConfirmDialog:function(a){if(a){this.showConfirm=null;this.confirmedConnect=a;this.connectToNode(!this.alreadyConnected);}else this.updateWidget({nowConnected:this.alreadyConnected,showConfirm:null,isAdmin:this.viewerIsAdmin},false);},syncWidgetDisplay:function(){var a=this.alreadyConnected;this.setButtonState(a);this.showElementIf(this.connectedMessage,a);this.showElementIf(this.notConnectedMessage,!a);if(this.adminSpans)for(var b=0;b<this.adminSpans.length;b++)this.showElementIf(this.adminSpans[b],this.viewerIsAdmin);if(this.errorSpans)for(var c=0;c<this.errorSpans.length;c++)this.showElementIf(this.errorSpans[c],this.error&&(this.viewerIsAdmin||this.showError));for(var d=0;d<this.confirmSpans.length;d++)this.showElementIf(this.confirmSpans[d],!this.alreadyConnected&&this.showConfirm);for(var e=0;e<this.unlikeSpans.length;e++)this.showElementIf(this.unlikeSpans[e],this.alreadyConnected);if(this.shareCommentSpans)for(var f=0;f<this.shareCommentSpans.length;f++)this.showElementIf(this.shareCommentSpans[f],a);this.showElementIf(this.connectButton,(!this.useDisconnectLink||!a)&&!this.showConfirm);if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT){this.manageBoxCountButtonAnimation(a);}else if(this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){this.manageButtonCountButtonAnimation(a);}else if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){this.manageSimpleButtonAnimation(a);}else this.manageStandardButtonAnimation(a);if(!this.loggedInUserPhotoDiv)return;if(a){this.slideUserPhotoIn(this.loggedInUserPhotoDiv);}else this.slideUserPhotoOut(this.loggedInUserPhotoDiv);},manageStandardButtonAnimation:function(a){if(this.grayOut)return;if(this.alreadyConnected||this.showConfirm){this.hideButton(true);}else this.hideButton(false);},setButtonState:function(a){if(a){CSS.removeClass(this.connectButton,'like_button_no_like');CSS.addClass(this.connectButton,'like_button_like');this.fixIEButtonDoubleLineBug();}else{CSS.addClass(this.connectButton,'like_button_no_like');CSS.removeClass(this.connectButton,'like_button_like');}},fixIEButtonDoubleLineBug:function(){if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&ua.ie()<=7&&!this.hasBeenFixed){var a=this.computeButtonDimensionsWithPadding();CSS.setStyle(this.connectButton,'width',a.width+1);this.hasBeenFixed=true;}},hideButton:function(a){if(this.layout!=='standard')return;if(this.oAnimateBlind)this.oAnimateBlind.stop();this.oAnimateBlind=animation(this.connectButtonSlider).duration(150);var b=1,c=intl_locale_is_rtl(),d=c?'marginRight':'marginLeft',e=c?'marginLeft':'marginRight';if(a){CSS.addClass(this.connectButtonContainer,'hidden');this.oAnimateBlind.ondone(function(){CSS.setStyle(this.connectButtonContainer,d,'2px');CSS.setStyle(this.connectButtonContainer,'visibility','hidden');CSS.addClass(this.confirmationCell,'connect_confirmation_cell_like');CSS.removeClass(this.confirmationCell,'connect_confirmation_cell_no_like');this.oAnimateBlind=null;}.bind(this));}else{CSS.setStyle(this.connectButtonContainer,d,'0px');b=Vector2.getElementDimensions(this.connectButton).x;this.oAnimateBlind.ondone(function(){CSS.setStyle(this.connectButtonSlider,'overflow','visible');CSS.setStyle(this.connectButtonSlider,'width','auto');CSS.removeClass(this.confirmationCell,'connect_confirmation_cell_like');CSS.addClass(this.confirmationCell,'connect_confirmation_cell_no_like');CSS.setStyle(this.connectButtonContainer,'visibility','visible');CSS.removeClass(this.connectButtonContainer,'hidden');this.oAnimateBlind=null;}.bind(this));}this.oAnimateBlind.to('width',b).blind().go();},showElementIf:function(a,b){if(!a)return;if(b){CSS.show(a);}else CSS.hide(a);},slideUserPhotoIn:function(a){if(!CSS.hasClass(a,'connect_widget_user_not_connected'))return;var b=CSS.getStyle(a,'width');CSS.setStyle(a,'width',0);CSS.setStyle(a,'opacity',0);CSS.removeClass(a,'connect_widget_user_not_connected');animation(a).to('width',b).duration(100).checkpoint().to('opacity',1).duration(400).go();},slideUserPhotoOut:function(a){if(CSS.hasClass(a,'connect_widget_user_not_connected'))return;animation(a).to('opacity',0).duration(100).checkpoint(.25).to('width',0).duration(100).ondone(function(){CSS.addClass(a,'connect_widget_user_not_connected');CSS.setStyle(a,'width',null);}).go();},primaryLikeButtonOnClick:function(event){if(this.grayOut&&this.alreadyConnected&&!this.mobile)return;this.connectToNodeOnClick(event);if(this.tombstoneCross&&this.alreadyConnected)DOM.replace(this.tombstoneCross,HTML('<div class="tombstone_cross tombstone_cross_static" />'));setTimeout(function(){this.tombstoneCross=DOM.find(this.widget,'div.tombstone_cross');CSS.removeClass(this.tombstoneCross,'tombstone_cross_static');Event.listen(this.tombstoneCross,'click',this.connectToNodeOnClick.bind(this));}.bind(this),1000);},_clickLocked:false,connectToNodeOnClick:function(event){Event.kill(event);if(!this._clickLocked){this._clickLocked=true;setTimeout(function(){this._clickLocked=false;}.bind(this),1000);if(this.viewerID==0||this.userOptedOut){this.presentOptIn();}else this.connectToNode(!this.alreadyConnected);}},connectToNode:function(a){if(!a){if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT)return;if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&!this.usingConnectLibrary){CSS.addClass(this.userActionTextSpan,'hidden_elem');CSS.removeClass(this.summaryTextSpan,'hidden_elem');CSS.setStyle(this.summaryTextSpan,'opacity',1);}if(this.shareCommentSpans)for(var b=0;b<this.shareCommentSpans.length;b++)CSS.addClass(this.shareCommentSpans[b],'hidden_elem');if(this.commentWidgetOpen){this.closeCommentWidget();}else if(this.inlineCommentFlyoutOpen)this.closeInlineComment();}this.updateWidget({nowConnected:!this.alreadyConnected,isAdmin:this.viewerIsAdmin},true);var c={href:this.externalUrl,node_type:this.nodeType,edge_type:this.edgeType,page_id:this.pageId,layout:this.layout,is_personalized:this.isPersonalized,show_captcha:this.showCaptcha,connect_text:this.connectText,ref:this.ref,now_connected:a,iframe_referer:this.iframeReferer};if(this.confirmedConnect)c.confirm=1;new AsyncRequest().setURI(this.getAjaxEndpoint()).setHandler(this.syncWidgetWithServer.bind(this)).setData(c).setNectarModuleDataSafe().setNectarImpressionIdSafe().send();if(a){if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT)this.requiresMouseLeaveEvent=true;if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&!this.usingConnectLibrary){CSS.setStyle(this.userActionTextSpan,'opacity',1);CSS.removeClass(this.userActionTextSpan,'hidden_elem');CSS.addClass(this.summaryTextSpan,'hidden_elem');Event.listen(this.widget,'mouseleave',this.transitionBetweenMessages.bind(this));}if(this.shareCommentSpans){for(var d=0;d<this.shareCommentSpans;d++)CSS.removeClass(this.shareCommentSpans[d],'hidden_elem');}else if(this.supportCommenting)this.presentCommentingOption();this.repositionFacepileVertically();}},transitionBetweenMessages:function(event){if(!this.alreadyConnected||CSS.hasClass(this.userActionTextSpan,'hidden_elem'))return;animation(this.userActionTextSpan).to('opacity',0).duration(500).ondone(function(){CSS.addClass(this.userActionTextSpan,'hidden_elem');CSS.setStyle(this.summaryTextSpan,'opacity',0);CSS.removeClass(this.summaryTextSpan,'hidden_elem');animation(this.summaryTextSpan).to('opacity',1).duration(500).ondone(function(){this.repositionFacepileVertically();}.bind(this)).go();this.positionInlineCommentFlyout();}.bind(this)).go();},presentCommentingOption:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.widgetID,event:'open'});if(this.usingConnectLibrary){ExternalNodeConnectWidget.self=this;var a={type:'presentEdgeCommentDialog',masterFrameName:window.name,version:2},b=Vector2.getElementDimensions(this.connectButton),c=Vector2.getElementPosition(this.connectButton);a.anchorGeometry={x:b.x,y:b.y};a.anchorPosition={x:c.x,y:c.y};a.width=400;a.height=225;UnverifiedXD.send(a);this.commentWidgetOpen=true;this.commentWidgetVisible=true;this.commentWidgetExpanded=true;}else if(this.usingInlineCommenting)if(!this.inlineCommentListenersInitialized){this.unwrapComment();this.initializeInlineCommentListeners();this.openInlineCommentFlyout();this.positionInlineCommentFlyout();this.inlineCommentListenersInitialized=true;}else{this.positionInlineCommentFlyout();this.openInlineCommentFlyout();}},unwrapComment:function(){if(this.unwrapComment.done)return;var a=$('connect-widget-comment-box-markup'),b=ExternalNodeConnectWidget.commentMarkup;a.innerHTML=b;this.unwrapComment.done=true;},initializeInlineCommentListeners:function(){this.inlineCommentFlyout=DOM.find(this.widget,'.connect_widget_comment_box');this.inlineCommentInput=DOM.find(this.inlineCommentFlyout,'.connect_widget_comment_textinput');this.inlineCommentButton=DOM.find(this.inlineCommentFlyout,'.connect_widget_comment_button');this.inlineCommentClose=DOM.scry(this.inlineCommentFlyout,'.connect_widget_comment_close_button');if(this.inlineCommentClose.length>0)this.inlineCommentClose=this.inlineCommentClose[0];this.commentButtonIsActive=false;Event.listen(this.inlineCommentInput,'keyup',this.conditionallyActivateButton.bind(this));Event.listen(this.inlineCommentInput,'focus',function(){this.inlineCommentFocused=true;this.exposeCommentButton();}.bind(this));Event.listen(this.inlineCommentButton,'click',this.updateConnectionWithComment.bind(this));Event.listen(this.inlineCommentInput,'blur',function(){this.inlineCommentFocused=false;this.hideInlineComment();}.bind(this));Event.listen(this.widget,'mouseout',this.hideInlineComment.bind(this));Event.listen(this.widget,'mouseover',this.showInlineComment.bind(this));if(this.inlineCommentClose)Event.listen(this.inlineCommentClose,'click',function(event){for(var a=0;a<this.shareCommentSpans.length;a++)CSS.removeClass(this.shareCommentSpans[a],'hidden_elem');this.closeInlineComment();}.bind(this));},exposeCommentButton:function(event){if(!CSS.hasClass(this.inlineCommentButton,'hidden_elem'))return;CSS.removeClass(this.inlineCommentButton,'hidden_elem');CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',this.textInputMarginWithButton+'px');},openInlineCommentFlyout:function(){CSS.show(this.inlineCommentFlyout);this.inlineCommentFlyoutOpen=true;this.inlineCommentFlyoutVisible=true;},manageBoxCountButtonAnimation:function(a){if(a&&!this.showConfirm){this.animateBoxCountButtonDisappearance();}else this.animateBoxCountButtonReappearance();},animateBoxCountButtonDisappearance:function(){if(this.grayOut)return;CSS.addClass(this.connectButton,'hidden_elem');CSS.setStyle(this.numberCloudExtension,'opacity',0);CSS.removeClass(this.numberCloudExtension,'hidden_elem');CSS.addClass(this.numberCloudNub,'hidden_elem');CSS.addClass(this.numberCloudUnlikeSpan,'hidden_elem');CSS.removeClass(this.numberCloudReminderSpan,'hidden_elem');animation(this.numberCloud).to('height',this.expandedNumberCloudHeight).duration(100).ondone(function(){animation(this.numberCloudExtension).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();},animateBoxCountButtonReappearance:function(){CSS.addClass(this.numberCloudExtension,'hidden_elem');animation(this.numberCloud).to('height',this.collapsedNumberCloudHeight).duration(75).ondone(function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else{CSS.setStyle(this.connectButton,'opacity',0);CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('opacity',0).to('opacity',1).duration(75).ondone(function(){CSS.setStyle(this.numberCloudNub,'opacity',0);CSS.removeClass(this.numberCloudNub,'hidden_elem');animation(this.numberCloudNub).from('opacity',0).to('opacity',1).duration(50).go();}.bind(this)).go();}}.bind(this)).go();},manageButtonCountButtonAnimation:function(a){if(a&&!this.showConfirm){this.animateButtonCountButtonDisappearance();}else this.animateButtonCountButtonReappearance();if(!this.grayOut){CSS.removeClass(this.thumbsUpIcon,'hidden_elem');CSS.addClass(this.undoRegion,'hidden_elem');}},manageSimpleButtonAnimation:function(a){if(this.grayOut)return;if(a&&!this.showConfirm){this.animateSimpleButtonDisappearance();}else this.animateSimpleButtonReappearance();},animateButtonCountButtonDisappearance:function(){if(!this.grayOut)animation(this.connectButton).from('opacity',1).to('opacity',0).from('width',this.originalButtonWidth).to('width','0px').ondone(function(){CSS.addClass(this.connectButton,'hidden_elem');}.bind(this)).duration(100).go();animation(this.numberExcluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.numberExcluding,'hidden_elem');CSS.setStyle(this.summaryIncluding,'opacity',0);CSS.removeClass(this.summaryIncluding,'hidden_elem');animation(this.summaryIncluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();for(var a=0;a<this.confirmSpans.length;a++)CSS.addClass(this.confirmSpans[a],'hidden_elem');if(this.grayOut)CSS.removeClass(this.connectButton,'hidden_elem');},animateSimpleButtonDisappearance:function(){animation(this.connectButton).from('opacity',1).to('opacity',0).from('width',this.originalButtonWidth).to('width','0px').ondone(function(){CSS.addClass(this.connectButton,'hidden_elem');CSS.setStyle(this.summaryIncluding,'opacity',0);CSS.removeClass(this.summaryIncluding,'hidden_elem');animation(this.summaryIncluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).duration(50).go();for(var a=0;a<this.confirmSpans.length;a++)CSS.addClass(this.confirmSpans[a],'hidden_elem');if(this.grayOut)CSS.removeClass(this.connectButton,'hidden_elem');},computeButtonDimensions:function(){var a=CSS.hasClass(this.connectButton,'hidden_elem');if(a){CSS.addClass(this.connectButton,'connect_widget_offscreen');CSS.removeClass(this.connectButton,'hidden_elem');}var b=Vector2.getElementDimensions(this.connectButton),c=b.x,d=b.y,e=parseInt(CSS.getStyle(this.connectButton,'paddingLeft'),10),f=parseInt(CSS.getStyle(this.connectButton,'paddingRight'),10),g=parseInt(CSS.getStyle(this.connectButton,'paddingTop'),10),h=parseInt(CSS.getStyle(this.connectButton,'paddingBottom'),10);if(a){CSS.addClass(this.connectButton,'hidden_elem');CSS.removeClass(this.connectButton,'connect_widget_offscreen');}return {width:c-e-f-2,height:d};},computeButtonDimensionsWithPadding:function(){var a=CSS.hasClass(this.connectButton,'hidden_elem');if(a){CSS.addClass(this.connectButton,'connect_widget_offscreen');CSS.removeClass(this.connectButton,'hidden_elem');}var b=Vector2.getElementDimensions(this.connectButton),c=b.x,d=b.y;if(ua.ie())c+=3;if(a){CSS.addClass(this.connectButton,'hidden_elem');CSS.removeClass(this.connectButton,'connect_widget_offscreen');}return {width:c,height:d};},animateButtonCountButtonReappearance:function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else if(!this.grayOut){CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('width','0px').to('width',this.originalButtonWidth).from('opacity',0).to('opacity',1).duration(100).go();}CSS.setStyle(this.summaryIncluding,'opacity',1);animation(this.summaryIncluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.summaryIncluding,'hidden_elem');CSS.setStyle(this.numberExcluding,'opacity',0);CSS.removeClass(this.numberExcluding,'hidden_elem');animation(this.numberExcluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();},animateSimpleButtonReappearance:function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else{CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('width','0px').to('width',this.originalButtonWidth).from('opacity',0).to('opacity',1).duration(100).go();}CSS.setStyle(this.summaryIncluding,'opacity',1);animation(this.summaryIncluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.summaryIncluding,'hidden_elem');}.bind(this)).go();},injectCommentWidgetMarkup:function(a){this.commentDocument=a;this.commentDocument.body.innerHTML=this.commentWidgetMarkup;this.transferCSSStyles();if(this.newProfilePic){var b=DOM.find(this.commentDocument,'img.connect_comment_widget_user_pic');b.src=this.newProfilePic;delete this.newProfilePic;}if(ua.ie()){var c=DOM.scry(this.commentDocument,'img.connect_comment_share_preview_pic');if(c.length>0){c=c[0];var d=50,e=Vector2.getElementDimensions(c),f=d/e.x;if(f<1){CSS.setStyle(c,'width',d);CSS.setStyle(c,'height',e.y*f);}}}this.setupCommentHooks(this.commentDocument);this.commentWidgetIsExpanded=!this.inlineUnlikeLink;var g=this.getCommentActivatingComponent();g.onmouseout=this.commentDocument.body.onmouseout=this.onCommentMouseOut.bind(this);g.onmouseover=this.commentDocument.body.onmouseover=this.onCommentMouseOver.bind(this);this.inGracePeriod=false;},positionNub:function(a){var b=DOM.find(this.connectButton,'.liketext'),c=Vector2.getElementPosition(b).x+7,d=DOM.find(this.commentDocument.body,'.nub');if(intl_locale_is_rtl()){c+=b.offsetWidth-14-7;left=c-parseFloat(a)+d.offsetWidth/2;}else left=c-parseFloat(a)-d.offsetWidth/2;d.style.left=left+'px';d.style.visibility='visible';},onCommentMouseOut:function(a){this.mouseOutside=true;return true;},onCommentMouseOver:function(a){this.mouseOutside=false;return true;},setupCommentHooks:function(a){this.placeholderInputRegion=DOM.find(a,'div.connect_comment_widget_placeholder_input_region');this.placeholderInput=DOM.find(this.placeholderInputRegion,'input.connect_comment_widget_placeholder_input');this.fullInputRegion=DOM.find(a,'div.connect_comment_widget_full_input_region');this.fullInputTextarea=DOM.find(this.fullInputRegion,'textarea.connect_comment_widget_full_input_textarea');this.ownProductCheckbox=DOM.scry(a,'input.connect_comment_widget_own_product_checkbox');if(this.ownProductCheckbox.length>0)this.ownProductCheckbox=this.ownProductCheckbox[0];this.widgetButtonRegion=DOM.find(a,'div.connect_comment_widget_button_region');this.postToFacebookButton=DOM.scry(this.widgetButtonRegion,'.connect_comment_widget_post_button input');if(this.postToFacebookButton.length>0){this.postToFacebookButton=this.postToFacebookButton[0];this.postToFacebookButton.onclick=this.updateUserComment.bind(this);}this.closeButton=DOM.scry(this.widgetButtonRegion,'.connect_comment_widget_close_button input');if(this.closeButton.length>0){this.closeButton=this.closeButton[0];this.closeButton.onclick=this.closeCommentWidget.bind(this);}this.inlineUnlikeLink=DOM.scry(a,'a.connect_comment_widget_unlike_link');if(this.inlineUnlikeLink.length>0){this.inlineUnlikeLink=this.inlineUnlikeLink[0];this.inlineUnlikeLink.onclick=this.connectToNodeOnClick.bind(this);}this.defaultInputText=this.placeholderInput.value;this.placeholderInput.onfocus=this.transitionToFullInputMode.bind(this);this.fullInputTextarea.onfocus=this.removePlaceholderText.bind(this);this.fullInputTextarea.onblur=(function(b){this.restorePlaceholderText();if(this.mouseOutside)return this.hideCommentWidget();}).bind(this);if(this.inlineUnlikeLink)this.inlineUnlikeLink.onclick=this.connectToNodeOnClick.bind(this);if(this.closeButton){this.closeButton.onclick=this.closeCommentWidget.bind(this);this.fullInputTextarea.onkeydown=(function(b){b=b||window.event;if(!b)return true;if(b.keyCode==13&&!(b.ctrlKey||b.shiftKey||b.altKey||b.metaKey)){this.updateUserComment();return false;}if(this.didResetOnKeydown)return true;this.removePlaceholderText();this.didResetOnKeydown=true;return true;}).bind(this);this.transitionToFullInputMode();}},getCommentActivatingComponent:function(){if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT||this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){return this.widget;}else if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){return this.widget;}else if(this.grayOut){return DOM.find(this.widget,'table.connect_widget_interactive_area');}else return this.confirmationCell;},showCommentWidget:function(event){if(this.otherCommentWidgetOpen)return false;this.inGracePeriod=true;this.killCloseThread();if(this.commentWidgetOpen&&!this.commentWidgetVisible){this.commentWidgetVisible=true;CSS.show(this.commentDocument.body);UnverifiedXD.send({type:'showEdgeCommentDialog'});}return false;},hideCommentWidget:function(event){if(this.otherCommentWidgetOpen)return false;this.inGracePeriod=false;if(this.commentWidgetOpen&&this.commentWidgetVisible){var a=function(){if(!this.inGracePeriod&&this.shouldHideExpandedWidget()){this.fullInputTextarea.blur();this.commentWidgetVisible=false;if(!this.socialBar)CSS.hide(this.commentDocument.body);UnverifiedXD.send({type:'hideEdgeCommentDialog'});}this.inGracePeriod=false;this.killCloseThread();}.bind(this);this.closeThreadID=setTimeout(a,100);}return false;},shouldHideExpandedWidget:function(){return !this.commentWidgetIsExpanded||this.fullInputTextarea.value===''||this.fullInputTextarea.value===this.defaultInputText;},killCloseThread:function(){if(this.closeThreadID){clearTimeout(this.closeThreadID);delete this.closeThreadID;}},transferCSSStyles:function(){var a=DOM.scry(window.document,'link'),b=DOM.scry(window.document,'style'),c=DOM.find(window.document,'html'),d=DOM.find(this.commentDocument,'html'),e=DOM.find(this.commentDocument,'head');for(var f=0;f<a.length;f++)if(a[f].rel=='stylesheet'){var g=this.commentDocument.createElement('link');g.rel=a[f].rel;g.href=a[f].href;g.type=a[f].type;e.appendChild(g);}for(f=0;f<b.length;f++){var h=this.commentDocument.createElement('style'),i=b[f].innerText||b[f].textContent||b[f].innerHTML;h.setAttribute("type","text/css");e.appendChild(h);if(h.styleSheet){h.styleSheet.cssText=i;}else{var j=this.commentDocument.createTextNode(i);h.appendChild(j);}}d.id=c.id;d.className=c.className;this.commentDocument.body.className=window.document.body.className;},transitionToFullInputMode:function(event){this.commentWidgetIsExpanded=true;CSS.hide(this.placeholderInputRegion);CSS.show(this.fullInputRegion);CSS.show(this.widgetButtonRegion);if(this.closeButton){this.restorePlaceholderText();var a=this.fullInputTextarea;if(document.selection){var b=a.createTextRange();b.collapse(true);b.moveEnd('character',0);b.moveStart('character',0);b.select();}else if(a.setSelectionRange){a.focus();a.setSelectionRange(0,0);}}return false;},removePlaceholderText:function(event){if(CSS.hasClass(this.fullInputTextarea,'connect_comment_widget_disabled')){CSS.removeClass(this.fullInputTextarea,'connect_comment_widget_disabled');this.fullInputTextarea.value='';}return false;},restorePlaceholderText:function(event){if(this.fullInputTextarea.value.trim()==''){this.fullInputTextarea.value=this.defaultInputText;CSS.addClass(this.fullInputTextarea,'connect_comment_widget_disabled');}return false;},updateUserComment:function(event){var a=this.fullInputTextarea.value.trim(),b=this.ownProductCheckbox.checked;if(a===''||a==this.defaultInputText){if(b===false)return false;a='';}this.postUserComment(a,b);return false;},getAjaxEndpoint:function(){return '/ajax/connect/external_node_connect.php';},getCommentAjaxEndpoint:function(){return '/ajax/connect/external_edge_comment.php';},getConfirmURL:function(){var a={href:this.externalUrl,page_id:this.pageId,node_type:this.nodeType,edge_type:this.edgeType,widget_id:this.widgetID};if(this.ref)a.ref=this.ref;return URI('/plugins/like_confirm.php').addQueryData(a).toString();},updateLoggedInUser:function(a,b){ExternalNodeConnectWidget.updateLoggedInUser(a,b);},syncSendWidgetWidth:function(a,b){var c=this.computeButtonDimensionsWithPadding().width,d=b.button_width-c;if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT&&d>0&&d<=5){CSS.setStyle(this.connectButton,'width',(b.button_width-parseInt(CSS.getStyle(this.connectButton,'paddingLeft'))-parseInt(CSS.getStyle(this.connectButton,'paddingRight'))-parseInt(CSS.getStyle(this.connectButton,'borderLeftWidth'))-parseInt(CSS.getStyle(this.connectButton,'borderRightWidth')))+'px');this.sizeNumberCloud();}if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT){var e=Vector2.getElementDimensions(this.widget).y;CSS.setStyle(this.widget,'height',(e+5)+'px');var f=ua.ie(),g=intl_locale_is_rtl(),h=g?'right':'left';if(f&&f<9){CSS.setStyle(this.connectButton,'position','absolute');CSS.setStyle(this.connectButton,h,-(b.button_width+10)+'px');}else{CSS.setStyle(this.connectButton,'position','fixed');CSS.setStyle(this.connectButton,h,'0px');}if(f&&this.connectButtonSlider){CSS.setStyle(this.connectButtonSlider,h,b.button_width+'px');if(f<=7)this.fixIEButtonDoubleLineBug();}CSS.setStyle(this.confirmationCell,'position','absolute');CSS.setStyle(this.confirmationCell,h,(b.button_width+c+5)+'px');CSS.setStyle(this.confirmationCell,'top','5px');if(this.sampleConnections){CSS.setStyle(this.sampleConnections,'position','fixed');CSS.setStyle(this.sampleConnections,h,'0');}this.invertedButtons=true;this.repositionFacepileVertically();}},repositionFacepileVertically:function(){if(this.invertedButtons&&this.sampleConnections){var a=Vector2.getElementDimensions(this.summaryText).y;CSS.setStyle(this.sampleConnections,'margin-top',(5+a+5)+'px');}}});
var ExternalPageLikeWidget=function(a){a.edgeType='like';this.parent.construct(this,a);this.unactionLink=DOM.scry(this.widget,'span.unlike_link')[0];if(this.unactionLink)Event.listen(this.unactionLink,'click',this.connectToNodeOnClick.bind(this));this.hasShowedInsights=false;this.showInsights();};Class.extend(ExternalPageLikeWidget,'ExternalNodeConnectWidget');ExternalPageLikeWidget.LIKE_EDGE_TYPE=0;ExternalPageLikeWidget.RECOMMEND_EDGE_TYPE=1;copy_properties(ExternalPageLikeWidget.prototype,{getSyncEndpointName:function(){var a=this.connectText?this.connectText:'like';if(a==ExternalPageLikeWidget.RECOMMEND_EDGE_TYPE)a='like';return 'platform/'+a+'/sync';},getConnectionEndpointName:function(){return 'platform/like/connection';},getPluginName:function(){return 'like';},presentInsightsPage:function(event){Event.kill(event);var a;a='/insights/?inline_link=true&sk=';if(this.pageId){a+='po_'+this.pageId;}else a+='lo_'+this.domainId;window.open(a,'_blank');},showInsights:function(){if(this.hasShowedInsights||(!this.pageId&&!this.domainId))return;var a=DOM.scry(this.widget,'a.connect_widget_insights_link');if(a)for(var b=0;b<a.length;b++){CSS.show(a[b].parentNode);Event.listen(a[b],'click',this.presentInsightsPage.bind(this));}this.hasShowedInsights=true;},repositionFacepileVertically:function(){this.showInsights();this.parent.repositionFacepileVertically();}});
__d("throttle",["debounce"],function(a,b,c,d,e,f){var g=b('debounce');function h(i,j,k){return g(i,j,k,false,true);}e.exports=h;});
__d("deferUntil",[],function(a,b,c,d,e,f){function g(h,i,j,k,l){var m=i();if(m){h(m);return null;}var n=Date.now(),o=setInterval(function(){m=i();if(!m){if(!j||(j<new Date()-n))return;l&&l();}clearInterval(o);h(m);},20,k);return o;}e.exports=g;});
__d("legacy:function-utils",["debounce","throttle","deferUntil"],function(a,b,c,d){a.debounce=b('debounce');a.throttle=b('throttle');a.defer_until=b('deferUntil');},3);
__d("InitialJSLoader",["Arbiter","Bootloader","OnloadEvent"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('Bootloader'),i=b('OnloadEvent'),j={INITIAL_JS_READY:'BOOTLOAD/JSREADY',loadOnDOMContentReady:function(k,l){g.subscribe(i.ONLOAD_DOMCONTENT_CALLBACK,function(){function m(){h.loadResources(k,function(){g.inform(j.INITIAL_JS_READY,true,g.BEHAVIOR_STATE);});}if(l){setTimeout(m,l);}else m();});}};e.exports=j;});
__d("legacy:init-js-loader",["InitialJSLoader"],function(a,b,c,d){a.InitialJSLoader=b('InitialJSLoader');},3);
__d("legacy:intl-core",["tx"],function(a,b,c,d){var e=b('tx');a.tx=e;a._tx=e._;},3);
__d("lowerDomain",[],function(a,b,c,d,e,f){if(document.domain.toLowerCase().match(/(^|\.)facebook\..*/))document.domain=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1');});
__d("legacy:onload",["Run","OnloadEvent"],function(a,b,c,d){var e=b('Run');a.OnloadEvent=b('OnloadEvent');a.onloadRegister_DEPRECATED=e.onLoad;a.onloadRegister=function(){return e.onLoad.apply(this,arguments);};a.onafterloadRegister_DEPRECATED=e.onAfterLoad;a.onafterloadRegister=function(){return e.onAfterLoad.apply(this,arguments);};a.onleaveRegister=e.onLeave;a.onbeforeunloadRegister=e.onBeforeUnload;a.onunloadRegister=e.onUnload;},3);
__d("OnloadHooks",["Arbiter","ErrorUtils","InitialJSLoader","OnloadEvent"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('ErrorUtils'),i=b('InitialJSLoader'),j=b('OnloadEvent');function k(){var r=a.CavalryLogger;if(!window.loaded&&r)r.getInstance().setTimeStamp('t_prehooks');n('onloadhooks');if(!window.loaded&&r)r.getInstance().setTimeStamp('t_hooks');window.loaded=true;g.inform('uipage_onload',true,g.BEHAVIOR_STATE);}function l(){n('onafterloadhooks');window.afterloaded=true;}function m(r,s){return h.applyWithGuard(r,null,null,function(t){t.event_type=s;t.category='runhook';});}function n(r){var s=(r=='onbeforeleavehooks')||(r=='onbeforeunloadhooks');do{var t=window[r];if(!t)break;if(!s)window[r]=null;for(var u=0;u<t.length;u++){var v=m(t[u],r);if(s&&v)return v;}}while(!s&&window[r]);}function o(){if(!window.loaded){window.loaded=true;n('onloadhooks');}if(!window.afterloaded){window.afterloaded=true;n('onafterloadhooks');}}function p(){g.registerCallback(k,[j.ONLOAD_DOMCONTENT_CALLBACK,i.INITIAL_JS_READY]);g.registerCallback(l,[j.ONLOAD_DOMCONTENT_CALLBACK,j.ONLOAD_CALLBACK,i.INITIAL_JS_READY]);g.subscribe(j.ONBEFOREUNLOAD,function(r,s){s.warn=n('onbeforeleavehooks')||n('onbeforeunloadhooks');if(!s.warn){window.loaded=false;window.afterloaded=false;}},g.SUBSCRIBE_NEW);g.subscribe(j.ONUNLOAD,function(r,s){n('onunloadhooks');},g.SUBSCRIBE_NEW);}var q={_onloadHook:k,_onafterloadHook:l,runHook:m,runHooks:n,keepWindowSetAsLoaded:o};p();a.OnloadHooks=e.exports=q;});
__d("legacy:onload-action",["OnloadHooks"],function(a,b,c,d){var e=b('OnloadHooks');a._onloadHook=e._onloadHook;a._onafterloadHook=e._onafterloadHook;a.runHook=e.runHook;a.runHooks=e.runHooks;a.keep_window_set_as_loaded=e.keepWindowSetAsLoaded;},3);
__d("ClickRefUtils",[],function(a,b,c,d,e,f){var g={get_intern_ref:function(h){if(!!h){var i={profile_minifeed:1,gb_content_and_toolbar:1,gb_muffin_area:1,ego:1,bookmarks_menu:1,jewelBoxNotif:1,jewelNotif:1,BeeperBox:1,navSearch:1};for(var j=h;j&&j!=document.body;j=j.parentNode){if(!j.id||typeof j.id!=='string')continue;if(j.id.substr(0,8)=='pagelet_')return j.id.substr(8);if(j.id.substr(0,8)=='box_app_')return j.id;if(i[j.id])return j.id;}}return '-';},get_href:function(h){return (h.getAttribute&&(h.getAttribute('ajaxify')||h.getAttribute('data-endpoint'))||h.action||h.href||h.name);},should_report:function(h,i){if(i=='FORCE')return true;if(i=='INDIRECT')return false;return (h&&g.get_href(h));}};e.exports=g;});
__d("collectDataAttributes",["ge"],function(a,b,c,d,e,f){var g=b('ge');function h(i,j){var k={},l={},m=j.length,n,o;for(n=0;n<m;++n){k[j[n]]={};l[j[n]]='data-'+j[n];}var p={tn:'',"tn-debug":','};while(i){if(i.getAttribute)for(n=0;n<m;++n){var q=i.getAttribute(l[j[n]]);if(q){var r=JSON.parse(q);for(var s in r)if(p[s]!==undefined){if(k[j[n]][s]===undefined)k[j[n]][s]=[];k[j[n]][s].push(r[s]);}else if(k[j[n]][s]===undefined)k[j[n]][s]=r[s];}}if(i.getAttribute&&(o=i.getAttribute('data-ownerid'))){i=g(o);}else i=i.parentNode;}for(var t in k)for(var u in p)if(k[t][u]!==undefined)k[t][u]=k[t][u].join(p[u]);return k;}e.exports=h;});
__d("setUECookie",["Env"],function(a,b,c,d,e,f){var g=b('Env');function h(i){if(!g.no_cookies){var j=0;if(a.afterloaded){j=2;}else if(a.loaded)j=1;document.cookie="act="+encodeURIComponent(i+":"+j)+"; path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}}e.exports=h;});
__d("ClickRef",["Arbiter","EagleEye","ClickRefUtils","collectDataAttributes","copyProperties","ge","setUECookie","$"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('EagleEye'),i=b('ClickRefUtils'),j=b('collectDataAttributes'),k=b('copyProperties'),l=b('ge'),m=b('setUECookie'),n=b('$');function o(q){if(!l('content'))return [0,0,0,0];var r=n('content'),s=a.Vector2?a.Vector2.getEventPosition(q):{x:0,y:0};return [s.x,s.y,r.offsetLeft,r.clientWidth];}function p(q,r,event,s){var t=(!a.ArbiterMonitor)?'r':'a',u=[0,0,0,0],v,w,x;if(!!event){v=event.type;if(v=='click'&&l('content'))u=o(event);var y=0;event.ctrlKey&&(y+=1);event.shiftKey&&(y+=2);event.altKey&&(y+=4);event.metaKey&&(y+=8);if(y)v+=y;}if(!!r)w=i.get_href(r);var z=[];if(a.ArbiterMonitor){x=a.ArbiterMonitor.getInternRef(r);z=a.ArbiterMonitor.getActFields();}var aa=j(!!event?(event.target||event.srcElement):r,['ft','gt']);k(aa.ft,s.ft||{});k(aa.gt,s.gt||{});if(aa.gt.ua_id)q.set_ua_id(aa.gt.ua_id);if(typeof(aa.ft.ei)==='string')delete aa.ft.ei;var ba=[q._ue_ts,q._ue_count,w||'-',q._context,v||'-',x||i.get_intern_ref(r),t,a.URI?a.URI.getRequestURI(true,true).getUnqualifiedURI().toString():location.pathname+location.search+location.hash,aa].concat(u).concat(z);return ba;}g.subscribe("UserAction/new",function(q,r){if(i.should_report(r.node,r.mode)){var s=p(r.ua,r.node,r.event,r.extra_data);m(r.ua.ue);h.log('act',s);}});});
__d("trackReferrer",["Parent"],function(a,b,c,d,e,f){var g=b('Parent');function h(i,j){i=g.byAttribute(i,'data-referrer');if(i){var k=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/.exec(j)[1]||'';if(!k)return;var l=k+'|'+i.getAttribute('data-referrer'),m=new Date();m.setTime(Date.now()+1000);document.cookie="x-src="+encodeURIComponent(l)+"; "+"expires="+m.toGMTString()+";path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}return i;}e.exports=h;});
__d("Primer",["ClickRef","Bootloader","CSS","Parent","trackReferrer","userAction"],function(a,b,c,d,e,f){b('ClickRef');var g=b('Bootloader'),h=b('CSS'),i=b('Parent'),j=b('trackReferrer'),k=b('userAction'),l=null,m=/async(?:-post)?|dialog(?:-pipe|-post)?|theater|toggle/,n=document.documentElement;n.onclick=function(q){q=q||window.event;l=q.target||q.srcElement;var r=i.byTag(l,'A');if(!r)return;var s=r.getAttribute('ajaxify'),t=r.href,u=s||t;if(u){var v=k('a',r,q).set_namespace('primer');if(a.ArbiterMonitor)a.ArbiterMonitor.initUA(v,[r]);}if(s&&t&&!(/#$/).test(t)){var w=q.which&&q.which===2,x=q.altKey||q.ctrlKey||q.metaKey||q.shiftKey;if(w||x)return;}j(r,u);var y=r.rel&&r.rel.match(m);y=y&&y[0];switch(y){case 'dialog':case 'dialog-post':g.loadModules(['AsyncDialog'],function(z){z.bootstrap(u,r,y);});break;case 'dialog-pipe':g.loadModules(['Dialog','AjaxPipeRequest'],function(z){z.bootstrap(u,null,false,null,null,r);});break;case 'async':case 'async-post':g.loadModules(['AsyncRequest'],function(z){z.bootstrap(u,r);});break;case 'theater':g.loadModules(['PhotoSnowlift'],function(z){z.bootstrap(u,r);});break;case 'toggle':h.toggleClass(r.parentNode,'openToggler');g.loadModules(['Toggler'],function(z){z.bootstrap(r);});break;default:return;}return false;};n.onsubmit=function(q){q=q||window.event;var r=q.target||q.srcElement;if(r&&r.nodeName=='FORM'&&r.getAttribute('rel')=='async'){var s=k('f',r,q).set_namespace('primer');if(a.ArbiterMonitor)a.ArbiterMonitor.initUA(s,[r]);var t=l;g.loadModules(['Form'],function(u){u.bootstrap(r,t);});return false;}};var o=null,p=function(q){q=q||window.event;o=q.target||q.srcElement;var r=i.byAttribute(o,'data-hover');if(!r)return;switch(r.getAttribute('data-hover')){case 'tooltip':g.loadModules(['Tooltip'],function(s){s.process(r,o);});break;}};n.onmouseover=p;if(n.addEventListener){n.addEventListener('focus',p,true);}else n.attachEvent('onfocusin',p);});
__d("legacy:primer",["Primer"],function(a,b,c,d){b('Primer');},3);
function SendButton(a){var b=$(a.divID);copy_properties(this,{button:DOM.find(b,'a.btnLink'),channel:a.channel,div:b,divID:a.divID,loggedIn:!!a.userID,nodeImageURL:a.nodeImageURL,nodeTitle:a.nodeTitle,nodeURL:a.nodeURL,nodeSummary:a.nodeSummary,error:a.error,initFormOpen:a.initFormOpen,extended_social_context:a.extended_social_context,likeButtonLayout:a.likeButtonLayout});this.init();}copy_properties(SendButton.prototype,{init:function(){this.formIsOpen=false;this.formIsShown=false;this.pendingFormShow=false;Arbiter.subscribe('platform/socialplugins/send/sent',function(a,b){if(b.controllerID===this.divID)this.closeForm();}.bind(this),Arbiter.SUBSCRIBE_NEW);Arbiter.subscribe('platform/socialplugins/send/cancel',function(a,b){if(b.controllerID===this.divID)this.hideForm();}.bind(this),Arbiter.SUBSCRIBE_NEW);this.buttonWidth=Vector2.getElementDimensions(this.button).x;this.widthSyncArbiter=Arbiter.subscribe('platform/socialplugins/like/resize',this.syncLikeWidgetWidth.bind(this));Arbiter.inform('platform/socialplugins/send/resize',{button_width:this.buttonWidth},Arbiter.BEHAVIOR_STATE);Arbiter.subscribe('platform/socialplugins/dialog',function(a,b){if(b.controllerID!==this.divID&&b.event=='open')this.closeForm();}.bind(this));UnverifiedXD.init({channelUrl:this.channel,autoResize:true,resizeWidth:true});Event.listen(this.button,'click',this.toggleFormVisibility.bind(this));if(this.initFormOpen)onafterloadRegister_DEPRECATED(this.toggleFormVisibility.bind(this));},syncLikeWidgetWidth:function(a,b){var c=b.button_width-this.buttonWidth;if(b.layout==='box_count'&&c>0&&c<=5)CSS.setStyle(this.div,'width',(b.button_width-parseInt(CSS.getStyle(this.button,'paddingLeft'))-parseInt(CSS.getStyle(this.button,'paddingRight'))-parseInt(CSS.getStyle(this.button,'borderLeftWidth'))-parseInt(CSS.getStyle(this.button,'borderRightWidth')))+'px');if(b.layout==='standard'){var d=intl_locale_is_rtl()?'right':'left';CSS.setStyle(this.div,'position','absolute');CSS.setStyle(this.div,d,(b.button_width+5)+'px');this.invertedButtons=true;}this.likeWidgetWidth=b.widget_width;this.likeButtonWidth=b.button_width;},toggleFormVisibility:function(a){if(!this.loggedIn){a.kill();PlatformOptInPopup.open('send');return;}if(!this.formIsOpen){this.openForm();}else if(this.formIsShown){this.hideForm();}else this.showForm();a.prevent();},hideForm:function(){if(this.formIsShown){this.formIsShown=false;UnverifiedXD.send({type:'hideEdgeCommentDialog'});CSS.removeClass(this.div,'fbSendButtonSelected');}},showForm:function(){if(!this.formIsShown){CSS.addClass(this.div,'fbSendButtonSelected');this.formIsShown=true;UnverifiedXD.send({type:'showEdgeCommentDialog'});}},closeForm:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.divID,event:'close'});if(this.formIsOpen){this.formIsOpen=this.formIsShown=false;UnverifiedXD.send({type:'dismissEdgeCommentDialog'});CSS.removeClass(this.div,'fbSendButtonSelected');}return this;},openForm:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.divID,event:'open'});if(!this.formIsOpen){CSS.addClass(this.div,'fbSendButtonSelected');this.formIsOpen=this.formIsShown=true;var a={type:'presentEdgeCommentDialog',nodeImageURL:this.nodeImageURL,nodeTitle:this.nodeTitle,nodeURL:this.nodeURL,nodeSummary:this.nodeSummary,controllerID:this.divID,error:this.error,widget_type:'send',extended_social_context:this.extended_social_context,width:400,height:300},b=Vector2.getElementDimensions(this.button),c=Vector2.getElementPosition(this.button);a.anchorGeometry={x:b.x,y:b.y};a.anchorPosition={x:c.x,y:c.y};var d=DOM.find(this.button,'.msgIcon'),e=Vector2.getElementPosition(d),f=Vector2.getElementDimensions(d);a.query={anchorTargetX:e.x+f.x/2,anchorTargetY:e.y+f.y/2};UnverifiedXD.send(a);}return this;}});